Page MenuHomePhabricator

revertbot doesn't work
Closed, ResolvedPublic

Description

revertbot doesn't work and throws a following error:

> python pwb.py revertbot
Fetching new batch of contributions
Traceback (most recent call last):
  File "pwb.py", line 257, in <module>
    if not main():
  File "pwb.py", line 251, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "pwb.py", line 121, in run_python_file
    main_mod.__dict__)
  File "./scripts/revertbot.py", line 182, in <module>
    main()
  File "./scripts/revertbot.py", line 179, in main
    bot.revert_contribs()
  File "./scripts/revertbot.py", line 85, in revert_contribs
    if callback(item):
  File "./scripts/revertbot.py", line 154, in callback
    return pattern.search(text) >= 0
TypeError: unorderable types: NoneType() >= int()
<class 'TypeError'>
CRITICAL: Closing network session.
>

It can maybe have something in common with T124537.

Configuration
last commit of pwb core from gerrit, Python v3.5.2

Event Timeline

Dvorapa created this task.Jul 15 2016, 7:18 PM
Restricted Application removed a project: Patch-For-Review. · View Herald TranscriptJul 15 2016, 7:18 PM
Restricted Application added a subscriber: Zppix. · View Herald Transcript
Dalba claimed this task.Jul 16 2016, 8:40 AM
Dalba closed this task as Resolved.EditedJul 16 2016, 4:16 PM

The problem should be resolved now.
Related patch: https://gerrit.wikimedia.org/r/#/c/299279/