-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error local variable 'ex' referenced before assignment #660
Comments
Traceback (most recent call last): |
Seems that it only happens when Poloniex is giving a 502 error msg |
There should be error handling for error 502, maybe Polo changed something. |
I see that section in poloniex.py. But that's where the error coming from. not sure why though, doesn't seem to be handling error. At least that's what it looks like to me. |
Keep getting this error on the log
Traceback (most recent call last):
poloniex_1 | File "/usr/src/app/lendingbot.py", line 97, in
poloniex_1 | Lending.transfer_balances()
poloniex_1 | File "/usr/src/app/modules/Lending.py", line 454, in transfer_balances
poloniex_1 | exchange_balances = api.return_balances() # This grabs only exchange balances.
poloniex_1 | File "/usr/src/app/modules/Poloniex.py", line 169, in return_balances
poloniex_1 | return self.api_query('returnBalances')
poloniex_1 | File "/usr/src/app/modules/ExchangeApi.py", line 29, in new_method
poloniex_1 | return method(self, *arg, **kws)
poloniex_1 | File "/usr/src/app/modules/Poloniex.py", line 141, in api_query
poloniex_1 | ex.message = ex.message if hasattr(ex, 'message') and ex.message else str(ex)
poloniex_1 | UnboundLocalError: local variable 'ex' referenced before assignment
poloniex_1 |
poloniex_1 | Unhandled error, please open a Github issue so we can fix it!
The text was updated successfully, but these errors were encountered: