From d7272165dbba882ff953aa1ef248a0ec7f6d9603 Mon Sep 17 00:00:00 2001 From: ethfar <37633114+Biswa24@users.noreply.github.com> Date: Tue, 1 Oct 2019 20:01:11 +0530 Subject: [PATCH] Update tags.py Typecast the variables which were causing error in using strip function --- evennia/typeclasses/tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/typeclasses/tags.py b/evennia/typeclasses/tags.py index 8c67a6c66c..1f9dd7ec86 100644 --- a/evennia/typeclasses/tags.py +++ b/evennia/typeclasses/tags.py @@ -292,8 +292,8 @@ class TagHandler(object): for tagstr in make_iter(tag): if not tagstr: continue - tagstr = tagstr.strip().lower() - category = category.strip().lower() if category else category + tagstr = str(tagstr).strip().lower() + category = str(category).strip().lower() if category else category data = str(data) if data is not None else None # this will only create tag if no matches existed beforehand (it # will overload data on an existing tag since that is not