fix strange crash in wayback plugin

Not sure what `extra` was for but it was crashing now.
parent 895b574b
......@@ -38,9 +38,9 @@ def output(*args, feed=None, item=None, **kwargs):
archive_location = 'N/A'
if res.status_code == requests.codes.ok:
logging.info('URL %s saved to wayback machine: %s',
item.get('link'), archive_location, extra=res)
item.get('link'), archive_location)
return True
else:
logging.warn('wayback machine failed to save URL %s, status %d',
item.get('link'), res.status_code, extra=res) # noqa
item.get('link'), res.status_code) # noqa
return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment