The result should be verified when calling item_price: the variable success is not defined in the case when jsondata['response']['success'] != 1.
Traceback:
price = api.itemPrice(name="Digit Divulger", quality="Unique", craftable=1, tradable=1)
File "/home/a/.local/share/virtualenvs/steam-49pLg0Sz/lib/python3.7/site-packages/BackpackTF/currency.py", line 118, in item_price
if success:
UnboundLocalError: local variable 'success' referenced before assignment
The result should be verified when calling
item_price
: the variablesuccess
is not defined in the case whenjsondata['response']['success'] != 1
.Traceback:
@davidteather
See: https://github.com/nbordin/BackpackTf-API/blob/master/BackpackTF/currency.py