Use InvalidFileException to fix the test

This commit is contained in:
Eduard Carreras
2014-01-23 18:15:46 +01:00
parent c8a5563309
commit 98e182bed2
+1 -1
View File
@@ -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):