[Pywikipedia-l] SVN: [6587] trunk/pywikipedia/copyright.py

cosoleto at svn.wikimedia.org cosoleto at svn.wikimedia.org
Sat Apr 11 11:05:21 UTC 2009


Revision: 6587
Author:   cosoleto
Date:     2009-04-11 11:05:21 +0000 (Sat, 11 Apr 2009)

Log Message:
-----------
Fixed detection of Google queries exceeded error

Modified Paths:
--------------
    trunk/pywikipedia/copyright.py

Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py	2009-04-11 06:10:43 UTC (rev 6586)
+++ trunk/pywikipedia/copyright.py	2009-04-11 11:05:21 UTC (rev 6587)
@@ -950,7 +950,8 @@
                 # SOAP.faultType: <Fault SOAP-ENV:Server: Exception from service object:
                 # Daily limit of 1000 queries exceeded for key ***>
                 #
-                if 'Daily limit' in str(err):
+
+                if 'Daily limit' in str(err) or 'Insufficient quota for key' in str(err):
                     exceeded_in_queries('google')
                 if 'limit exceeded' in str(err):
                     exceeded_in_queries('yahoo')





More information about the Pywikipedia-l mailing list