]> khamidou — GitHub mirrors - flanker.git/commitdiff
Fix typo in utils.py anton/typo-fix
authorAnton Efimenko <anton@mailgunhq.com>
Sun, 22 Jun 2014 20:16:22 +0000 (13:16 -0700)
committerAnton Efimenko <anton@mailgunhq.com>
Sun, 22 Jun 2014 20:16:22 +0000 (13:16 -0700)
flanker/utils.py

index 5514ef98d8afc351a989f62082f03a046d2a63fa..8c20a91c0e0286d5c8e1b2ef5e4cc3aae71ef750 100644 (file)
@@ -18,7 +18,7 @@ def _guess_and_convert(value):
     try:
         value = value.decode(charset["encoding"], "replace")
         return value
-    except (UnicodeError, LookupError):
+    except (UnicodeError, LookupError) as e:
         raise errors.DecodingError(str(e))
 
 def _make_unicode(value, charset=None):