md5 expects bytes, so encode the string

This commit is contained in:
Jelle van der Waa 2018-02-16 22:08:28 +01:00
parent cbee9abdc9
commit 7742430a26

View File

@ -45,7 +45,7 @@ def filter(self, record):
return True return True
trace = '\n'.join(traceback.format_exception(*record.exc_info)) trace = '\n'.join(traceback.format_exception(*record.exc_info))
key = md5(trace).hexdigest() key = md5(trace.encode('utf-8')).hexdigest()
cache = self.cache_module.cache cache = self.cache_module.cache
# Test if the cache works # Test if the cache works