Fix edge case with multiple superusers
This commit is contained in:
parent
1e7603024e
commit
a630ccd51c
3 changed files with 37 additions and 34 deletions
|
|
@ -839,7 +839,7 @@ class DefaultAccount(with_metaclass(TypeclassBase, AccountDB)):
|
|||
|
||||
"""
|
||||
# if we have saved protocol flags on ourselves, load them here.
|
||||
protocol_flags = self.attributes.get("_saved_protocol_flags", None)
|
||||
protocol_flags = self.attributes.get("_saved_protocol_flags", {})
|
||||
if session and protocol_flags:
|
||||
session.update_flags(**protocol_flags)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue