From 3c80ead036adce94736cc4acf847937145eb5e50 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 26 Dec 2021 23:41:29 +0000 Subject: [PATCH] Handle there not being a webhook set up --- handler/revolut.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/revolut.py b/handler/revolut.py index 754d589..1c8d065 100644 --- a/handler/revolut.py +++ b/handler/revolut.py @@ -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