summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tablib/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/core.py b/tablib/core.py
index 91dcac4..f1dd3b6 100644
--- a/tablib/core.py
+++ b/tablib/core.py
@@ -118,7 +118,7 @@ class Dataset(object):
"""Returns the width of the Dataset."""
try:
return len(self._data[0])
- except KeyError, why:
+ except IndexError, why:
return 0
@property