93
94
for key, value in kwds.items():
94
95
setattr(self, key, value)
97
98
s = getattr(self, '_preformatted_string', None)
102
103
fmt = self._get_format_string()
109
107
# __str__() should always return a 'str' object
110
108
# never a 'unicode' object.
114
110
except (AttributeError, TypeError, NameError, ValueError, KeyError), e:
115
111
return 'Unprintable exception %s: dict=%r, fmt=%r, error=%r' \