From 0511e8c014c34976bd2431aa6178b64c08e8456e Mon Sep 17 00:00:00 2001 From: Camille Frantz Date: Sun, 8 Jun 2025 14:44:07 -0500 Subject: [PATCH] error handling --- dog_facts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dog_facts.py b/dog_facts.py index bc8b3d7..7302dc9 100644 --- a/dog_facts.py +++ b/dog_facts.py @@ -30,3 +30,5 @@ if response.reason == "OK": notify(-1, loads(response.text)['uri']) else: notify(1, response.reason) +else: + notify(1, response.reason)