mirror of https://gitlab.com/litecord/litecord.git
ignore KeyErrors when removing flags
This commit is contained in:
parent
b015cce7a9
commit
f69d0aa724
|
|
@ -140,7 +140,10 @@ class DispatcherWithFlags(
|
|||
|
||||
def remove_flags(self, key: K, identifier: V):
|
||||
"""Set flags for the given identifier."""
|
||||
try:
|
||||
self.flags[key].pop(identifier)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
def get_flags(self, key: K, identifier: V):
|
||||
"""Get a single field from the flags store."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue