mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-05 05:52:04 +00:00
Add a comment explaining allow_none
This commit is contained in:
@@ -128,6 +128,8 @@ class RegistrationStore(SQLBaseStore):
|
||||
try:
|
||||
if was_guest:
|
||||
# Ensure that the guest user actually exists
|
||||
# ``allow_none=False`` makes this raise an exception
|
||||
# if the row isn't in the database.
|
||||
self._simple_select_one_txn(
|
||||
txn,
|
||||
"users",
|
||||
|
||||
Reference in New Issue
Block a user