Skip to content

Commit

Permalink
Take fix for formatting error from upstream
Browse files Browse the repository at this point in the history
Non-merged PR: okfn#171
  • Loading branch information
StevenMaude committed Jul 5, 2020
1 parent 41b13e7 commit 322db5f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions messytables/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ def get_workbook():
file_contents=read_obj,
encoding_override=encoding,
formatting_info=with_formatting_info)
except XLRDError as e:
_, value, traceback = sys.exc_info()
if PY2:
raise ReadError("Can't read Excel file: %r" % value, traceback)
else:
raise ReadError("Can't read Excel file: %r" % value).with_traceback(traceback)
except XLRDError as xlrdexc:
raise ReadError("Can't read Excel file: %r" % xlrdexc)
'''Initilize the tableset.
:param encoding: passed on to xlrd.open_workbook function
Expand Down

0 comments on commit 322db5f

Please sign in to comment.