diff --git a/dev/scripts.commnunity/fix_social_users.py b/dev/scripts.commnunity/fix_social_users.py index a7c92f0427..4fdf174d9f 100644 --- a/dev/scripts.commnunity/fix_social_users.py +++ b/dev/scripts.commnunity/fix_social_users.py @@ -27,8 +27,9 @@ if not galaxy_user_by_unverified_email and not galaxy_user_by_unverified_name: continue - if galaxy_user_by_unverified_email.id == galaxy_user_by_unverified_name.id: - galaxy_user_by_unverified_name = None + if galaxy_user_by_unverified_email and galaxy_user_by_unverified_name: + if galaxy_user_by_unverified_email.id == galaxy_user_by_unverified_name.id: + galaxy_user_by_unverified_name = None print(f'{sid}. {github_id}|{github_login} current:{current_username} current_email:{current_email}')