Handle there not being a webhook set up
This commit is contained in:
@@ -128,6 +128,8 @@ class Revolut(object):
|
|||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
parsed = r.json()
|
parsed = r.json()
|
||||||
return parsed
|
return parsed
|
||||||
|
elif r.status_code == 404:
|
||||||
|
return {}
|
||||||
else:
|
else:
|
||||||
self.log.error("Cannot get webhooks: {content}", r.content)
|
self.log.error("Cannot get webhooks: {content}", r.content)
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user