Page MenuHomePhabricator

-sleep parameter of checkimages.py script fails with ValueError
Closed, ResolvedPublic

Description

C:\pwb\GIT\core>pwb checkimages -wait:60 -sleep:60
Traceback (most recent call last):
  File "C:\pwb\GIT\core\pwb.py", line 362, in <module>
    if not main():
  File "C:\pwb\GIT\core\pwb.py", line 354, in main
    run_python_file(filename,
  File "C:\pwb\GIT\core\pwb.py", line 73, in run_python_file
    exec(compile(source, filename, 'exec', dont_inherit=True),
  File ".\scripts\checkimages.py", line 1732, in <module>
    ret = main()
  File ".\scripts\checkimages.py", line 1557, in main
    time_sleep = int(arg[length + 1:])
ValueError: invalid literal for int() with base 10: ''
CRITICAL: Exiting due to uncaught exception <class 'ValueError'>

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Medium priority.Oct 4 2020, 6:54 AM

Change 631961 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Re-enable -sleep parameter in checkimages.py

https://gerrit.wikimedia.org/r/631961

Change 631961 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Re-enable -sleep parameter in checkimages.py

https://gerrit.wikimedia.org/r/631961