summaryrefslogtreecommitdiff
path: root/tablib/formats/_tsv.py
diff options
context:
space:
mode:
Diffstat (limited to 'tablib/formats/_tsv.py')
-rw-r--r--tablib/formats/_tsv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/formats/_tsv.py b/tablib/formats/_tsv.py
index f581f81..ac9554c 100644
--- a/tablib/formats/_tsv.py
+++ b/tablib/formats/_tsv.py
@@ -55,5 +55,5 @@ def detect(stream):
try:
csv.Sniffer().sniff(stream, delimiters='\t')
return True
- except csv.Error:
+ except (csv.Error, TypeError):
return False