From 5912bf4870d7518dd7741bd5537fd7e8d4da4936 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 4 Oct 2010 16:04:36 -0400 Subject: [PATCH] none should have an __in__ method. --- tablib/formats/_xls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tablib/formats/_xls.py b/tablib/formats/_xls.py index 0e989a7..08265b0 100644 --- a/tablib/formats/_xls.py +++ b/tablib/formats/_xls.py @@ -65,7 +65,11 @@ def dset_sheet(dataset, ws): # wrap the rest else: - if '\n' in col: + try: + pass + except Exception, e: + raise e + if (col is None) or ('\n' in col): ws.write(i, j, col, wrap) else: ws.write(i, j, col)