We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct execution of XINFO STREAM via execute_command gives a KeyError since a parser expects a string key but receives a byte-string instead.
execute_command
def parse_xinfo_stream(response): res = pairs_to_dict(response) if res['first-entry'] and len(res['first-entry']) > 0:
Redeclaring pairs_to_dict to:
pairs_to_dict
def pairs_to_dict(response): "Create a dict given a list of key/value pairs" it = iter(response) return {k.decode(): v for k, v in zip(it, it)}
resolves the issue but I'm unsure if it may backfire somewhere else in the code :-)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Direct execution of XINFO STREAM via
execute_command
gives a KeyError since a parser expects a string key but receives a byte-string instead.Redeclaring
pairs_to_dict
to:resolves the issue but I'm unsure if it may backfire somewhere else in the code :-)
The text was updated successfully, but these errors were encountered: