fix type error

This commit is contained in:
jr-k 2024-05-18 20:55:04 +02:00
parent 904d485839
commit fe6e96f8f2

View File

@ -87,6 +87,8 @@ class UserManager:
id_or_entity = int(id_or_entity)
except ValueError:
return User(username=id_or_entity, enabled=False)
except TypeError:
return User(username=id_or_entity, enabled=False)
user_map = self.prepare_map()