Page MenuHomePhabricator

CCC: have_seen_image UnboundLocalError
Closed, ResolvedPublic

Description

python3 corrupt.py
Traceback (most recent call last):
  File "corrupt.py", line 190, in <module>
    process_file2()
  File "corrupt.py", line 53, in process_file2
    if have_seen_image(site, image_page.title()):
  File "/home/ccc/Commons-image-corruption-detector/database_stuff.py", line 160, in have_seen_image
    return msg
UnboundLocalError: local variable 'msg' referenced before assignment

Revisions and Commits

Event Timeline

TheSandDoctor created this task.
TheSandDoctor created this object with visibility "Public (No Login Required)".
TheSandDoctor closed this task as Resolved by committing Restricted Diffusion Commit.Feb 8 2020, 5:56 PM
TheSandDoctor added a commit: Restricted Diffusion Commit.