You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code raises a SystemError when provided with the following input. This indicates unexpected behavior, as the function returns with an error set, yet the return value is not NULL.
import hiredis
import sys
data = open(sys.argv[1], "rb").read().decode("utf-8")
r = hiredis.Reader()
r.feed(data)
r.gets()
TypeError: unhashable type: 'dict'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "rep.py", line 7, in <module>
r.gets()
SystemError: <class 'hiredis.ProtocolError'> returned a result with an exception set