PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Local Variable Error

Open agastimhatre opened this issue 10 years ago • 2 comments

Expected Behavior

Script should run normally

Actual Behavior

2016-08-07 10:34:34,334 [ cli] [INFO] PokemonGO Bot v1.0 Traceback (most recent call last): File "pokecli.py", line 493, in main() File "pokecli.py", line 126, in main if bot: UnboundLocalError: local variable 'bot' referenced before assignment

Steps to Reproduce

Other Information

OS: Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here) Python Version: (run 'python -V' and paste it here)

agastimhatre avatar Aug 07 '16 05:08 agastimhatre

Had this happen to me. look for an extra comma in your config file. Perhaps running your config through http://jsonlint.com/ will find it. It did for me.

TechDaddyKB avatar Aug 07 '16 05:08 TechDaddyKB

https://github.com/camarokris Thanks Buddy, one extra comma in location itself. it worked.

agastimhatre avatar Aug 07 '16 05:08 agastimhatre