Skip to content

Commit

Permalink
raise a nicer Error by including the original exception string.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaap Roes committed Nov 29, 2011
1 parent 2520390 commit 2538570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unicodecsv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def _stringify(s, encoding):
def _stringify_list(l, encoding):
try:
return [_stringify(s, encoding) for s in iter(l)]
except TypeError:
raise csv.Error()
except TypeError, e:
raise csv.Error(str(e))

def _unicodify(s, encoding):
if s is None:
Expand Down

0 comments on commit 2538570

Please sign in to comment.