summaryrefslogtreecommitdiff
path: root/tablib/formats
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-10-04 16:12:42 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-10-04 16:12:42 -0400
commitda2e670d0db8acbc9a95f83234f24dcf4c30e4a8 (patch)
treeb6aec082a5c2bc9bc2ab648008340b3058da6c9e /tablib/formats
parent5912bf4870d7518dd7741bd5537fd7e8d4da4936 (diff)
downloadtablib-da2e670d0db8acbc9a95f83234f24dcf4c30e4a8.tar.gz
Oops.
Diffstat (limited to 'tablib/formats')
-rw-r--r--tablib/formats/_xls.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tablib/formats/_xls.py b/tablib/formats/_xls.py
index 08265b0..f7be4a4 100644
--- a/tablib/formats/_xls.py
+++ b/tablib/formats/_xls.py
@@ -66,12 +66,11 @@ def dset_sheet(dataset, ws):
# wrap the rest
else:
try:
- pass
- except Exception, e:
- raise e
- if (col is None) or ('\n' in col):
- ws.write(i, j, col, wrap)
- else:
+ if '\n' in col:
+ ws.write(i, j, col, wrap)
+ else:
+ ws.write(i, j, col)
+ except TypeError:
ws.write(i, j, col)
\ No newline at end of file