I encounter the following error while doing fut.extras.futbinPrice request (hundreds of such requests do succeed):
pricefuthead=fut.extras.futbinPrice(item['resourceId'],platform='xbox')
File "/usr/local/lib/python2.7/dist-packages/fut/extras.py", line 64, in futbinPrice
xbox = int(rc['xbox']['LCPrice'])
ValueError: invalid literal for int() with base 10: '1,100'
(LC_NUMERIC is set to "en_US.UTF-8", setting it to "C" does not change anything).
Quickfix would most probably be to use something like
int(rc['xbox']['LCPrice'].replace(',','')
I encounter the following error while doing fut.extras.futbinPrice request (hundreds of such requests do succeed):
pricefuthead=fut.extras.futbinPrice(item['resourceId'],platform='xbox') File "/usr/local/lib/python2.7/dist-packages/fut/extras.py", line 64, in futbinPrice xbox = int(rc['xbox']['LCPrice']) ValueError: invalid literal for int() with base 10: '1,100'
(LC_NUMERIC is set to "en_US.UTF-8", setting it to "C" does not change anything). Quickfix would most probably be to use something like int(rc['xbox']['LCPrice'].replace(',','')