mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +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:
|
except OSError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if profile is None:
|
||||||
|
return
|
||||||
|
|
||||||
user = User.query.filter_by(forums_username=username).first()
|
user = User.query.filter_by(forums_username=username).first()
|
||||||
|
|
||||||
# Create user
|
# Create user
|
||||||
|
Loading…
Reference in New Issue
Block a user