Fix edge case with multiple superusers

This commit is contained in:
Griatch 2019-05-01 19:10:44 +02:00
parent 1e7603024e
commit a630ccd51c
3 changed files with 37 additions and 34 deletions

View file

@ -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)