Handle there not being a webhook set up

pull/1/head
Mark Veidemanis 3 years ago
parent d0a5782449
commit 3c80ead036
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -128,6 +128,8 @@ class Revolut(object):
if r.status_code == 200:
parsed = r.json()
return parsed
elif r.status_code == 404:
return {}
else:
self.log.error("Cannot get webhooks: {content}", r.content)
return False

Loading…
Cancel
Save