From 19975877cb5bf3b0b1b4e60c974c0485344433ee Mon Sep 17 00:00:00 2001 From: Ojakoo Date: Tue, 13 Sep 2022 09:59:55 +0300 Subject: [PATCH] Remove debug stuff --- webapp/utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webapp/utils.py b/webapp/utils.py index 06cadb2..19c2f6c 100644 --- a/webapp/utils.py +++ b/webapp/utils.py @@ -143,10 +143,6 @@ def add_to_mailinglist(email: str): service.members().insert(groupKey=GROUP_KEY, body={"email": email}).execute() except HttpError as err: # Already in list, do nothing - print() - print(err) - print() - if err.status_code == 409: pass else: @@ -161,7 +157,7 @@ def add_to_mailinglist(email: str): ) send_email(to, subject, body) - """ except ValueError as err: + except ValueError as err: logging.exception("Formatting of google credentials is incorrect") if DEPLOY_ENV == "production": @@ -171,4 +167,4 @@ def add_to_mailinglist(email: str): email ) - send_email(to, subject, body) """ + send_email(to, subject, body)