Traceback (most recent call last):


 "eval.py", line 144, in <module>

vars(opt))


 "/media/sdb/Chen/deeplearning/LSTM/self/eval_utils.py", line 113, in eval_split

tmp = [_.cuda() if _ is not None else _ for _ in tmp]
AttributeError: 'numpy.ndarray' object has no attribute 'cuda'

Traceback (most recent call last):


 "lendingbot.py", line 80, in <module>

Lending.cancel_all()


 "/media/kamrenov/other/work/poloniexlendingbot/modules/Lending.py", line 181, in cancel_all

loan_offers = api.return_open_loan_offers()


 "/media/kamrenov/other/work/poloniexlendingbot/modules/Poloniex.py", line 181, in return_open_loan_offers

loan_offers = self.api_query('returnOpenLoanOffers')


 "/media/kamrenov/other/work/poloniexlendingbot/modules/Poloniex.py", line 36, in new_method

return method(self, *arg, **kws)


 "/media/kamrenov/other/work/poloniexlendingbot/modules/Poloniex.py", line 127, in api_query

if ex.code == 502 or ex.code in range(520, 526, 1):
AttributeError: 'exceptions.ValueError' object has no attribute 'code'
