summaryrefslogtreecommitdiff
path: root/tablib/formats/_xls.py
diff options
context:
space:
mode:
Diffstat (limited to 'tablib/formats/_xls.py')
-rw-r--r--tablib/formats/_xls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tablib/formats/_xls.py b/tablib/formats/_xls.py
index baa7904..88e8636 100644
--- a/tablib/formats/_xls.py
+++ b/tablib/formats/_xls.py
@@ -25,17 +25,17 @@ def detect(stream):
try:
xlrd.open_workbook(file_contents=stream)
return True
- except (TypeError, XLRDError):
+ except Exception:
pass
try:
xlrd.open_workbook(file_contents=stream.read())
return True
- except (AttributeError, XLRDError):
+ except Exception:
pass
try:
xlrd.open_workbook(filename=stream)
return True
- except:
+ except Exception:
return False