Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Fail more noisily if no path or file provided to Request.get_file#16

Merged
alexmac05 merged 1 commit intohellosign:v3from
btubbs:v3
Jan 21, 2018
Merged

Fail more noisily if no path or file provided to Request.get_file#16
alexmac05 merged 1 commit intohellosign:v3from
btubbs:v3

Conversation

@btubbs
Copy link
Copy Markdown
Contributor

@btubbs btubbs commented Jun 2, 2016

I just spent an hour trying to figure out why get_signature_request_file was returning False. The problem turned out to be that I wasn't providing either of the path_or_file or filename arguments. This patch catches that case and raises a ValueError.

This fix is very limited in scope. I think the better fix would be to let all exceptions bubble up instead of trapping them all in a try/except and returning False. That way there is more information available to the caller. I have avoided doing that in my patch because the SDK seems committed to a paradigm of True for success, False for failure. If you're open to revisiting that, let's do it.

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.

2 participants