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