diff --git a/database_caller.py b/database_caller.py index cfb4223..5bc6ed8 100755 --- a/database_caller.py +++ b/database_caller.py @@ -232,7 +232,7 @@ def updateNews(api_key): except Exception as e: - print(response) + exc_type, exc_obj, exc_tb = sys.exc_info() fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] logf.write(str(e))