Revision: 6472
Author:   nicdumz
Date:     2009-03-03 08:19:44 +0000 (Tue, 03 Mar 2009)

Log Message:
-----------
APIError is not appropriate here '-_-

Modified Paths:
--------------
    branches/rewrite/pywikibot/data/logentries.py

Modified: branches/rewrite/pywikibot/data/logentries.py
===================================================================
--- branches/rewrite/pywikibot/data/logentries.py       2009-03-03 08:03:41 UTC 
(rev 6471)
+++ branches/rewrite/pywikibot/data/logentries.py       2009-03-03 08:19:44 UTC 
(rev 6472)
@@ -9,7 +9,7 @@
 #
 __version__ = '$Id: $'
 
-from api import APIError
+from pywikibot.exceptions import *
 
 class LogEntry(object):
     """Generic log entry"""
@@ -107,4 +107,4 @@
             logtype = logdata['type'] 
             return _getEntryClass(logtype)(logdata)
         except KeyError:
-            raise APIError("Log entry has no 'type' key")
+            raise Error("Log entry has no 'type' key")



_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to