mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 06:56:13 +00:00
Merge pull request #137 from gisce/fix_xlsx_detect_test
Use InvalidFileException to fix the test
This commit is contained in:
@@ -30,7 +30,7 @@ def detect(stream):
|
||||
try:
|
||||
openpyxl.reader.excel.load_workbook(stream)
|
||||
return True
|
||||
except TypeError:
|
||||
except openpyxl.shared.exc.InvalidFileException:
|
||||
pass
|
||||
|
||||
def export_set(dataset):
|
||||
|
||||
Reference in New Issue
Block a user