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

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


Revision: 6592
Author:   cosoleto
Date:     2009-04-11 21:54:00 +0000 (Sat, 11 Apr 2009)

Log Message:
-----------
Print more descriptive message about the communication error with the Live Search server

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

Modified: trunk/pywikipedia/copyright.py
===================================================================
--- trunk/pywikipedia/copyright.py	2009-04-11 18:12:07 UTC (rev 6591)
+++ trunk/pywikipedia/copyright.py	2009-04-11 21:54:00 UTC (rev 6592)
@@ -910,8 +910,8 @@
 
                     try:
                         server = WSDL.Proxy('http://soap.search.msn.com/webservices.asmx?wsdl')
-                    except:
-                        error("Live Search Error")
+                    except Exception, err:
+                        error("Live Search Error: %s" % err)
                         raise
 
                     params = {'AppID': config.msn_appid, 'Query': '%s "%s"' % (no_result_with_those_words, query),





More information about the Pywikipedia-l mailing list