Fix merge with AUTHORS

This commit is contained in:
Yohan Graterol
2014-11-07 11:02:48 -05:00
3 changed files with 15 additions and 1 deletions

View File

@@ -229,7 +229,7 @@ class BaseDocument(object):
u = self.__str__()
except (UnicodeEncodeError, UnicodeDecodeError):
u = '[Bad Unicode data]'
repr_type = type(u)
repr_type = str if u is None else type(u)
return repr_type('<%s: %s>' % (self.__class__.__name__, u))
def __str__(self):