src/hdabo/migrations/0003_update_redirection.py
changeset 458 604b887e70c3
parent 266 825ff4d6a8ac
--- a/src/hdabo/migrations/0003_update_redirection.py	Thu Feb 26 15:51:03 2015 +0100
+++ b/src/hdabo/migrations/0003_update_redirection.py	Thu Feb 26 10:33:10 2015 +0100
@@ -12,6 +12,9 @@
         
         sys.stdout.write("Processing %d tags\n" % (queryset_count))
         sys.stdout.flush()
+        
+        if queryset_count == 0:
+            return
         site = wiki.Wiki("http://fr.wikipedia.org/w/api.php") #@UndefinedVariable