summaryrefslogtreecommitdiff
path: root/tablib/formats/_json.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-10-06 12:48:43 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-10-06 12:48:43 -0400
commit143677be77d9deac237b92c15a20b87b8b164a2e (patch)
tree83708d4d61a5786e73128596ded4566497480258 /tablib/formats/_json.py
parentb2c35c254368e87d6293bbb506d240a486a68688 (diff)
downloadtablib-143677be77d9deac237b92c15a20b87b8b164a2e.tar.gz
New exception style.
Diffstat (limited to 'tablib/formats/_json.py')
-rw-r--r--tablib/formats/_json.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tablib/formats/_json.py b/tablib/formats/_json.py
index fbc3758..843da90 100644
--- a/tablib/formats/_json.py
+++ b/tablib/formats/_json.py
@@ -10,6 +10,7 @@ except ImportError:
import tablib.core
+
title = 'json'
extentions = ('json', 'jsn')
@@ -47,5 +48,5 @@ def detect(stream):
try:
json.loads(stream)
return True
- except json.decoder.JSONDecodeError:
+ except ValueError:
return False \ No newline at end of file