Closed ConnorTippets closed 3 years ago
@ConnorTippets
It would be more helpful to show the whole code but this should hopefully help you to find the right solution.
It says that you referenced a variable 'response' before assigning a value to it. There is written that you are trying to get something from the variable at line 66, but the variable doesen't exist yet.
It is better to read the error before opening a issue. Hoping that this helps, Mores92.
@ConnorTippets I'm pretty sure this is just a copy of https://github.com/Snuggle/hypixel.py/issues/20#issue-555352190
But yeah, I was going to use this API wrapper but I had to myerfire's API wrapper instead.
@ConnorTippets
It would be more helpful to show the whole code but this should hopefully help you to find the right solution.
It says that you referenced a variable 'response' before assigning a value to it. There is written that you are trying to get something from the variable at line 66, but the variable doesen't exist yet.
It is better to read the error before opening a issue. Hoping that this helps, Mores92.
I know what the error is, i know where it came from, what i'm confused about is how to fix it
Hello, @ConnorTippets! This hopefully is fixed by https://github.com/Snuggle/hypixel.py/commit/6903c76436f1ea66eb078356e2bf010af22d8b38. Could you please see if v0.8.0
of hypixel.py fixes this issue for you? If you use Python's PIP, you can run something like: pip install hypixel --upgrade
to upgrade the package.
I try to set the keys, and i get an
UnboundLocalError
, i believe this is because it setsresponse
in the loop, but you're checking it outside the loop.Traceback: