diff options
Diffstat (limited to 'tablib/formats/_xlsx.py')
| -rw-r--r-- | tablib/formats/_xlsx.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py index 516191c..f8f21c2 100644 --- a/tablib/formats/_xlsx.py +++ b/tablib/formats/_xlsx.py @@ -28,8 +28,8 @@ def detect(stream): try: openpyxl.reader.excel.load_workbook(stream, read_only=True) return True - except openpyxl.shared.exc.InvalidFileException: - pass + except Exception: + return False def export_set(dataset, freeze_panes=True): """Returns XLSX representation of Dataset.""" |
