Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Re-raise exceptions that happen when invoking commands in the pipeline command #82

Closed
versae opened this issue Dec 8, 2016 · 0 comments
Assignees

Comments

@versae
Copy link
Collaborator

versae commented Dec 8, 2016

For example the command histonets pipeline '[{"action":"posterize","options":{"value":4,"method":"linear"}}]' file://tests/images/test.png exits leaving a very ugly Python error message because posterize does not take value as parameter. In these cases of TypeError the exception should be re-raised as click.BadParameter with a message stating that there might be a malformed JSON.

@versae versae self-assigned this Dec 10, 2016
csbailey5t added a commit that referenced this issue Dec 12, 2016
Closes #82. Re-raise exceptions properly in the pipeline command
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants