Commits

Anonymous committed a6f3bc2

Fix fall-out of str.decode removal.

Comments (0)

Files changed (1)

     # convert to 7-bit ascii if possible
     try:
         return string.decode("ascii")
-    except (UnicodeError, TypeError):
+    except (UnicodeError, TypeError, AttributeError):
         return string
 
 __version__ = "1.0.1"