MicroPyramid / forex-python

Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
http://forex-python.readthedocs.io/en/latest/usage.html
MIT License
661 stars 195 forks source link

Rate returned as string crashes forex currency conversion #120

Open Shavril opened 2 years ago

Shavril commented 2 years ago

In the currency conversion,rate is usually returned from _get_decoded_rate asfloat. But sometimes it returns astring instead, and then it crashes on the highlighted line because it cant multiply string. The values I used to get string are included in the picture.

forex-error