Revision: 8150
Author: russblau
Date: 2010-05-06 19:55:40 +0000 (Thu, 06 May 2010)
Log Message:
-----------
Supply missing attribute for APIError.
Modified Paths:
--------------
branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py
===================================================================
--- branches/rewrite/pywikibot/data/api.py 2010-05-06 07:21:16 UTC (rev 8149)
+++ branches/rewrite/pywikibot/data/api.py 2010-05-06 19:55:40 UTC (rev 8150)
@@ -40,6 +40,7 @@
self.code = code
self.info = info
self.other = kwargs
+ self.unicode = unicode(self.__str__())
def __repr__(self):
return 'APIError("%(code)s", "%(info)s", %(other)s)'
% self.__dict__
def __str__(self):
Show replies by date