summaryrefslogtreecommitdiff
path: root/tablib/formats/_csv.py
diff options
context:
space:
mode:
Diffstat (limited to 'tablib/formats/_csv.py')
-rw-r--r--tablib/formats/_csv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tablib/formats/_csv.py b/tablib/formats/_csv.py
index 3a4c374..549259c 100644
--- a/tablib/formats/_csv.py
+++ b/tablib/formats/_csv.py
@@ -51,5 +51,5 @@ def detect(stream):
try:
csv.Sniffer().sniff(stream)
return True
- except csv.Error:
- return False \ No newline at end of file
+ except (csv.Error, TypeError):
+ return False