md5 expects bytes, so encode the string
This commit is contained in:
parent
cbee9abdc9
commit
7742430a26
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user