diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-09-13 16:50:08 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-09-13 16:50:08 -0400 |
| commit | ddf4b441b07c1542b1bd44b5db4bb61c5fa79cc8 (patch) | |
| tree | 379a05d9f915b90e011ac7d83d6a0c897c398a0d /tablib | |
| parent | a0509126e0f593078045c49f774c857b65c634c5 (diff) | |
| download | tablib-ddf4b441b07c1542b1bd44b5db4bb61c5fa79cc8.tar.gz | |
Fixed exception catch, Fixes Issue #5.
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/core.py | 2 |
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 |
