Fwd: FW: Byte string error Django cache + celery

11 views
Skip to first unread message

Kai Aeberli

unread,
Aug 20, 2019, 8:39:15 PM8/20/19
to django...@googlegroups.com

Hi,

 

When using Django caching backend with celery, I noticed I get an error

 

“if ord(char) < 33 or ord(char) == 127: TypeError: ord() expected string of length 1, but int found”

 

It goes away when I change the yellow highlighted to ‘str(key)’:

 

 


Reply all
Reply to author
Forward
0 new messages