Skip to content

Attachment actions inputs property incorrectly calling dictionary #102

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
wattsjs opened this issue Apr 2, 2020 · 2 comments · Fixed by #103
Closed

Attachment actions inputs property incorrectly calling dictionary #102

wattsjs opened this issue Apr 2, 2020 · 2 comments · Fixed by #103

Comments

@wattsjs
Copy link

wattsjs commented Apr 2, 2020

Receiving a TypeError: 'collections.OrderedDict' object is not callable error when accessing .inputs on an AttachmentAction.

In mixins/attachment_action.py, on line 73:

return self._json_data('inputs') should be return self._json_data.get('inputs')

@sQu4rks
Copy link
Contributor

sQu4rks commented Apr 8, 2020

+1 ran into the same problem. Accessing the json dict directly works as a work-around

attachment = api.attachment_actions.get(attachment_id)
inputs = attachment._json_data.get('inputs')

@cmlccie
Copy link
Collaborator

cmlccie commented Apr 11, 2020

Thank you for catching and fixing the bug. 🙂 I will merge the PR.

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.

3 participants