Remove debug stuff
This commit is contained in:
+2
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user