fix: Resolved conflict issue

This commit is contained in:
Nabin Hait 2021-05-17 11:35:48 +05:30
parent 6d7a852351
commit 75ea09f9df

View file

@ -402,7 +402,9 @@ def encode_dict(d, encoding="utf-8"):
def decode_dict(d, encoding="utf-8"):
for key in d:
if isinstance(d[key], str) and not isinstance(d[key], str):
d[key] = d[key].decode(encoding, "ignore")
return d
@functools.lru_cache()
def get_site_name(hostname):
return hostname.split(':')[0]