UnboundLocalError: local variable 'request_url' referenced before assignment
Opened this issue · 0 comments
yohanneshabte commented
Issue: bug 01
fatal error while running python file snapcode.py
with the correct syntax
Steps to reproduce the error
when terminal command:
python snapcode.py username
is run utilizing python 3
Computer version and system
Mac O.S 10.15
Both terminal and python IDLE
Actual behavior
Following traceback is displayed
Traceback (most recent call last):
File "snapcode.py", line 73, in <module>
main()
File "snapcode.py", line 70, in main
get_code(args.username)
File "snapcode.py", line 36, in get_code
urllib.request.urlretrieve(request_url, path)
UnboundLocalError: local variable 'request_url' referenced before assignment
Expected behavior
An image file representing the snap code of the user to be download to the directory where you ran snapcode.py from