Fix for throttling exception without message.

pull/684/head
Louis Vézina 5 years ago
parent 0d87924bc0
commit 3cdff1dd9f

@ -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):

Loading…
Cancel
Save