diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-07-08 15:57:06 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-07-08 15:57:06 +0100 |
commit | dfde67a6fe22535558552060820abfca047540f3 (patch) | |
tree | 0dcf8daf67457a0c6b03d81a93f6060344e99750 /synapse/storage | |
parent | Ensure that the guest user is in the database when upgrading accounts (diff) | |
download | synapse-dfde67a6fe22535558552060820abfca047540f3.tar.xz |
Add a comment explaining allow_none
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/registration.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 3a675e53f6..d957a629dc 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -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", |