mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
Fixed exception catch, Fixes Issue #5.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user