Skip to content
This repository was archived by the owner on Nov 19, 2017. It is now read-only.

text is an undefined variable use message['text']#23

Closed
intellisense wants to merge 1 commit into
jacobian:masterfrom
intellisense:patch-1
Closed

text is an undefined variable use message['text']#23
intellisense wants to merge 1 commit into
jacobian:masterfrom
intellisense:patch-1

Conversation

@intellisense

@intellisense intellisense commented Mar 7, 2017

Copy link
Copy Markdown

In consumers.py > ws_receive - line 56 if exception occurred the log is using text variable which is undefined we need to use message['text'] instead.

    try:
        data = json.loads(message['text'])
    except ValueError:
        log.debug("ws message isn't json text=%s", text)  #<-- we need to use message['text'] here
        return

@intellisense

Copy link
Copy Markdown
Author

Oops! didn't saw there is already a PR #10 so closing this one. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant