From 1669e1805dc7424592c0c8c1ece9fc14c0d81142 Mon Sep 17 00:00:00 2001 From: Anmol Date: Tue, 21 Jul 2020 13:04:21 +0530 Subject: [PATCH] FIX: Added Error Handling --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 70edb1a..c083be1 100644 --- a/main.py +++ b/main.py @@ -161,6 +161,7 @@ def get_stats(): if request.status_code == 200: data = request.json() + stats = stats + '📊 **This week I spent my time on** \n\n' stats = stats + '```text\n' if showTimeZone.lower() in ['true', '1', 't', 'y', 'yes']: timezone = data['data']['timezone']