Skip to content

No _data in response in some cases #139

New issue

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

Closed
denis-ignatenko opened this issue May 20, 2019 · 0 comments · Fixed by #145
Closed

No _data in response in some cases #139

denis-ignatenko opened this issue May 20, 2019 · 0 comments · Fixed by #145
Assignees

Comments

@denis-ignatenko
Copy link
Contributor

When calling Connection authenticate there is not data in response. In interactive console exception raised
`--> 236 for tpl in self._data:
237 output.extend(("- ", repr(tpl), "\n"))
238 if len(output) > 0:

TypeError: 'NoneType' object is not iterable`

for tpl in self._data:

Possible fix:
for i in r._data or ()

@denis-ignatenko denis-ignatenko self-assigned this Jun 10, 2019
Totktonada pushed a commit that referenced this issue Jun 10, 2019
For example an Connection::authenticate() response does no contain a
data. This leads to an exception when working with the connection from
interactive python console.

Fixes #139.
Totktonada pushed a commit that referenced this issue Jun 10, 2019
For example an Connection::authenticate() response does no contain a
data. This leads to an exception when working with the connection from
interactive python console.

Fixes #139.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant