From ddf4b441b07c1542b1bd44b5db4bb61c5fa79cc8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 13 Sep 2010 16:50:08 -0400 Subject: [PATCH] Fixed exception catch, Fixes Issue #5. --- tablib/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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