jenkins-bot submitted this change.
[bugfix] Do not create an option named None
Bug: T366409
Change-Id: I3f37b5f220daecc45a6ff35f9aafc5e54733d4ff
---
M scripts/interwikidata.py
1 file changed, 5 insertions(+), 1 deletion(-)
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 change 1037892. To unsubscribe, or for help writing mail filters, visit settings.