Skip to content

Commit

Permalink
Catch any xlrd error and ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ChazDazzle committed Feb 12, 2017
1 parent c5338bd commit 2624ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfpdb/IdentifySite.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def read_file(self, in_path):
sh = wb.sheet_by_index(0)
header = str(sh.cell(0,0).value)
return header, 'utf-8'
except xlrd.XLRDError:
except:
return None, None
for kodec in self.codepage:
try:
Expand Down

0 comments on commit 2624ab1

Please sign in to comment.