From ced0bfea594c5a9498d258d8fac1df3e5c21c0ec Mon Sep 17 00:00:00 2001 From: Kovitikus Date: Tue, 10 Sep 2019 14:42:01 -0400 Subject: [PATCH] Converions to string types. --- evennia/accounts/bots.py | 2 +- evennia/accounts/manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/accounts/bots.py b/evennia/accounts/bots.py index ca33e6a299..18043a9a52 100644 --- a/evennia/accounts/bots.py +++ b/evennia/accounts/bots.py @@ -104,7 +104,7 @@ class Bot(DefaultAccount): "boot:perm(Admin);msg:false();noidletimeout:true()" self.locks.add(lockstring) # set the basics of being a bot - script_key = f"{self.key}" + script_key = f"{str(self.key)}" self.scripts.add(BotStarter, key=script_key) self.is_bot = True diff --git a/evennia/accounts/manager.py b/evennia/accounts/manager.py index 1b29803f95..f5f34f1aac 100644 --- a/evennia/accounts/manager.py +++ b/evennia/accounts/manager.py @@ -166,7 +166,7 @@ class AccountDBManager(TypedObjectManager, UserManager): if callable(typeclass): typeclass = f"{typeclass.__module__}.{typeclass.__name__}" else: - typeclass = f"{typeclass}" + typeclass = f"{str(typeclass)}" query["db_typeclass_path"] = typeclass if exact: matches = self.filter(**query)