Message 78286

Author
resteve
Date
2022-09-23.19:11:20
Message id
78286

Content

Yesterday, 22/sep night we detected that currency test don't pass:

Error:

File "/tryton/trytond/trytond/modules/currency/tests/scenario_currency_rate_update.rst", line 49, in scenario_currency_rate_update.rst
Failed example:
    rate = [r for r in eur.rates if r.date < today][0]
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.9/doctest.py", line 1336, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest scenario_currency_rate_update.rst[24]>", line 1, in <module>
        rate = [r for r in eur.rates if r.date < today][0]
    IndexError: list index out of range

Debug:

Traceback (most recent call last):
    File "/home/raimon/projectes/nandev2/nancore/trytond/trytond/modules/currency/currency.py", line 443, in fetch_ecb
        return get_rates(self.currency.code, date)
    File "/home/raimon/.virtualenvs/nandev2/lib/python3.9/site-packages/forex_python/converter.py", line 62, in get_rates
        raise RatesNotAvailableError("Currency Rates Source Not Ready")
forex_python.converter.RatesNotAvailableError: Currency Rates Source Not Ready
History
Date User Action Args
2022-09-23 19:11:20restevesetmessageid: <1663953080.679101.EXLJYFQ5W6Q3R26F.issue11731@tryton.org>
2022-09-23 19:11:20restevelinkissue11731 messages
2022-09-23 19:11:20restevecreate

Showing 10 items. Show all history (warning: this could be VERY long)