futapi / fut

fut is a simple library for managing Fifa 19 Ultimate Team.
GNU General Public License v3.0
317 stars 138 forks source link

extras/futbin - huthead #389

Open noilhan opened 6 years ago

noilhan commented 6 years ago

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(',','')

oczkers commented 6 years ago

pricefuthead=fut.extras.futbinPrice

You might wanna correct this ;-).

This bug is already fixed here https://github.com/futapi/fut/commit/ee9db6b37f9fe34c79a0737d9d18913581864257 but not yet released.