mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 03:35:10 +00:00
Add a comment explaining allow_none
This commit is contained in:
parent
10c843fcfb
commit
dfde67a6fe
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,8 @@ class RegistrationStore(SQLBaseStore):
|
||||||
try:
|
try:
|
||||||
if was_guest:
|
if was_guest:
|
||||||
# Ensure that the guest user actually exists
|
# 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(
|
self._simple_select_one_txn(
|
||||||
txn,
|
txn,
|
||||||
"users",
|
"users",
|
||||||
|
|
Loading…
Reference in a new issue