Skip to content

Conversation

kirit93
Copy link

@kirit93 kirit93 commented Apr 8, 2019

@Cahl-Dee this PR is with regards to the conversation we had and the issues I submitted.

Let me know your thoughts.

if signer_chain_id and not signer_private_key:
raise Exception("signer_private_key is required when passing a signer_chain_id.")
if not content:
raise Exception("content is required.")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the None-check on content removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, that was an error on my part. I realize now that the None check for content should remain.
My rationale was that since it's a compulsory function arg, there would always be some content passed by the user. But in the case the user passes in "None" the None-check would handle that.

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 this pull request may close these issues.

2 participants