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()
|
service.members().insert(groupKey=GROUP_KEY, body={"email": email}).execute()
|
||||||
except HttpError as err:
|
except HttpError as err:
|
||||||
# Already in list, do nothing
|
# Already in list, do nothing
|
||||||
print()
|
|
||||||
print(err)
|
|
||||||
print()
|
|
||||||
|
|
||||||
if err.status_code == 409:
|
if err.status_code == 409:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
@@ -161,7 +157,7 @@ def add_to_mailinglist(email: str):
|
|||||||
)
|
)
|
||||||
|
|
||||||
send_email(to, subject, body)
|
send_email(to, subject, body)
|
||||||
""" except ValueError as err:
|
except ValueError as err:
|
||||||
logging.exception("Formatting of google credentials is incorrect")
|
logging.exception("Formatting of google credentials is incorrect")
|
||||||
|
|
||||||
if DEPLOY_ENV == "production":
|
if DEPLOY_ENV == "production":
|
||||||
@@ -171,4 +167,4 @@ def add_to_mailinglist(email: str):
|
|||||||
email
|
email
|
||||||
)
|
)
|
||||||
|
|
||||||
send_email(to, subject, body) """
|
send_email(to, subject, body)
|
||||||
|
|||||||
Reference in New Issue
Block a user