Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323835?usp=email )

Change subject: [bugfix] interwiki.py: Graph is often not created in -auto mode
......................................................................

[bugfix] interwiki.py: Graph is often not created in -auto mode

Graphs are generated only in the «assemble» function, a transition to which
is made only when forcedStop does not work in the «finish» function. Since
forcedStop only works when there are problems with interwiki, add the
creation of graphs to this break point.

Bug: T416086
Change-Id: I20333386bc57ddde62d18b9ffa0023cb96b9bedb
---
M scripts/interwiki.py
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 3258bbb..4225ee6 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -1469,6 +1469,9 @@
             return

         if self.forcedStop:  # autonomous with problem
+            if config.interwiki_graph:
+                graphDrawer = interwiki_graph.GraphDrawer(self)
+                graphDrawer.createGraph()
             pywikibot.info(f'======Aborted processing {self.origin}======')
             return


--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323835?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I20333386bc57ddde62d18b9ffa0023cb96b9bedb
Gerrit-Change-Number: 1323835
Gerrit-PatchSet: 3
Gerrit-Owner: Ivan-r <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to