mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix crash on forum profile not found
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user