Update main.py

Added Proper error message for the error returned from waka time api
This commit is contained in:
Anmol Pratap Singh
2020-07-23 12:39:18 +05:30
committed by GitHub
parent eccbf9f0a8
commit 0aa5992fdb

View File

@@ -192,7 +192,7 @@ def get_stats():
stats = stats + '```\n\n' stats = stats + '```\n\n'
else: else:
print("Waka Time Api Key Not Configured Properly") print("Error With WAKA time API returned "+request.status_code + " Response "+ request.json())
except Exception as e: except Exception as e:
print("Waka Time Api Key Not Configured" + str(e)) print("Waka Time Api Key Not Configured" + str(e))