Fix for throttling exception without message.

This commit is contained in:
Louis Vézina 2019-11-26 17:03:58 -05:00
parent 0d87924bc0
commit 3cdff1dd9f
1 changed files with 3 additions and 2 deletions

View File

@ -167,8 +167,9 @@ def provider_throttle(name, exception):
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
settings.write(handle)
logging.info("Throttling %s for %s, until %s, because of: %s. Exception info: %r", name, throttle_description,
throttle_until.strftime("%y/%m/%d %H:%M"), cls_name, exception.args[0])
logging.info("Throttling %s for %s, until %s, because of: %s. Exception info: %r", name,
throttle_description, throttle_until.strftime("%y/%m/%d %H:%M"), cls_name, exception.args[0]
if exception.args else None)
def throttled_count(name):