Skip to content

Commit 0ca3add

Browse files
Merge pull request #102 from MicroPyramid/Currency_Rates_Source_Not_Ready
forex_python.converter.RatesNotAvailableError: Currency Rates Source …
2 parents fcc62b7 + 4aa3095 commit 0ca3add

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

forex_python/converter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ def _decode_rates(self, response, use_decimal=False, date_str=None):
3737
decoded_data = json.loads(response.text, use_decimal=True)
3838
else:
3939
decoded_data = response.json()
40-
if (date_str and date_str != 'latest'
41-
and date_str != decoded_data.get('date')):
42-
raise RatesNotAvailableError("Currency Rates Source Not Ready")
40+
# if (date_str and date_str != 'latest' and date_str != decoded_data.get('date')):
41+
# raise RatesNotAvailableError("Currency Rates Source Not Ready")
4342
return decoded_data.get('rates', {})
4443

4544
def _get_decoded_rate(

0 commit comments

Comments
 (0)