jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1037892?usp=email )

Change subject: [bugfix] Do not create an option named None
......................................................................

[bugfix] Do not create an option named None

Bug: T366409
Change-Id: I3f37b5f220daecc45a6ff35f9aafc5e54733d4ff
---
M scripts/interwikidata.py
1 file changed, 5 insertions(+), 1 deletion(-)

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




diff --git a/scripts/interwikidata.py b/scripts/interwikidata.py
index a20f72f..f31a66e 100755
--- a/scripts/interwikidata.py
+++ b/scripts/interwikidata.py
@@ -249,7 +249,11 @@
     options = {}
     for arg in local_args:
         option, _, value = arg.partition(':')
-        option = option[1:] if option.startswith('-') else None
+        if option.startswith('-'):
+            option = option[1:]
+        else:
+            continue
+
         if option == 'summary':
             options[option] = value
         else:

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

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

Reply via email to