Revision: 6871
Author:   nicdumz
Date:     2009-05-11 16:00:00 +0000 (Mon, 11 May 2009)

Log Message:
-----------
Syntax fix: try...except...finally is Python >=2.5 only
( [ 2790121 ] interwiki.py crash )

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

Modified: trunk/pywikipedia/interwiki.py
===================================================================
--- trunk/pywikipedia/interwiki.py      2009-05-11 00:35:51 UTC (rev 6870)
+++ trunk/pywikipedia/interwiki.py      2009-05-11 16:00:00 UTC (rev 6871)
@@ -2141,12 +2141,13 @@
             bot.add(singlePage, hints = hints)
 
         try:
-            bot.run()
-        except KeyboardInterrupt:
-            bot.dump()
-        except:
-            bot.dump()
-            raise
+            try:
+                bot.run()
+            except KeyboardInterrupt:
+                bot.dump()
+            except:
+                bot.dump()
+                raise
         finally:
             if globalvar.contentsondisk:
                 StoredPage.SPdeleteStore()



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

Reply via email to