def refresh_exchange_rates():
try:
rates = provider.fetch_rates()
cache.set("rates", rates)
except ProviderError:
logger.warning("could not refresh exchange rates")Deterministic block parse on JS/TS and Python: flags handlers whose body is only log or print calls, with no throw, raise, return, or assignment, and which never reference the caught error.