Page MenuHomePhabricator

Critical exceptionl: local variable 'relative_filename' referenced before assignment
Closed, ResolvedPublicBUG REPORT

Description

A my bot on wmftools falls with follows exception. Since this commit March 9, I think.

Traceback (most recent call last):
  File "/data/project/shared/pywikipedia/core/pwb.py", line 368, in <module>
    if not main():
  File "/data/project/shared/pywikipedia/core/pwb.py", line 362, in main
    [Path(relative_filename).stem] + argvu[1:],
UnboundLocalError: local variable 'relative_filename' referenced before assignment
CRITICAL: Exiting due to uncaught exception <class 'UnboundLocalError'>

Event Timeline

Vladis13 created this task.Mar 24 2020, 6:54 AM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptMar 24 2020, 6:54 AM
Vladis13 renamed this task from Critica exceptionl: local variable 'relative_filename' referenced before assignment to Critical exceptionl: local variable 'relative_filename' referenced before assignment.Mar 24 2020, 6:55 AM
Xqt triaged this task as High priority.Mar 24 2020, 6:59 AM
Xqt claimed this task.Mar 24 2020, 7:24 AM