main.py: do all checks when creating new subscriber

This commit is contained in:
Antoine Martin 2024-03-03 00:35:52 -05:00
parent 3b07155f20
commit cc9d07344c
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -116,7 +116,6 @@ for user_info in authentik_get_users():
print('> Failed to find username, creating subscriber') print('> Failed to find username, creating subscriber')
create_resp = listmonk_create_subscriber(user_info['email'], user_info['username'], status=user_active) create_resp = listmonk_create_subscriber(user_info['email'], user_info['username'], status=user_active)
print(create_resp) print(create_resp)
continue
# checks if user email matches subscriber email # checks if user email matches subscriber email
if user_info['email'] != subscriber_info['email']: if user_info['email'] != subscriber_info['email']: