Update tags.py

Typecast the variables which were causing error in using strip function
This commit is contained in:
ethfar 2019-10-01 20:01:11 +05:30 committed by GitHub
parent 1115a941c1
commit d7272165db

View file

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