From ed45bf0ee89c6def8e226509110fbbbafeb9e2fa Mon Sep 17 00:00:00 2001
From: m33m33 <m33m33>
Date: Mon, 21 Sep 2020 15:27:24 +0200
Subject: [PATCH] fail and exit on exception

---
 phishstats.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/phishstats.py b/phishstats.py
index dd277ee..1473a25 100644
--- a/phishstats.py
+++ b/phishstats.py
@@ -20,13 +20,13 @@ searches=[]
 keywords=[]
 
 # delay between two API calls
-request_delay=5
+request_delay=1
 
 # timeout for an API call
 request_timeout=120
 
 # print debug messages
-debug=1
+debug=0
 
 # Program logic blow this line
 
@@ -101,6 +101,7 @@ for search in searches:
         jsonResponse = response.json()
     except:
         print("ERROR: Request failed!",search)
+        sys.exit(1)
 
     if debug: print("done.")
     if len(jsonResponse) > 0:
-- 
GitLab