Fix crash on forum profile not found

This commit is contained in:
rubenwardy 2021-01-27 17:42:47 +00:00
parent 5a1656b8d0
commit 88a8e85b12

@ -29,6 +29,9 @@ def checkForumAccount(username, forceNoSave=False):
except OSError:
return
if profile is None:
return
user = User.query.filter_by(forums_username=username).first()
# Create user