The clean_fail decorator that suppressed error output for the credstash CLI catches all errors. This behavior is undesirable when credstash is imported as a library. This PR adds a conditional to clean_fail so it will only catch errors when run as a command.
Resolves #276
The
clean_fail
decorator that suppressed error output for thecredstash
CLI catches all errors. This behavior is undesirable whencredstash
is imported as a library. This PR adds a conditional toclean_fail
so it will only catch errors when run as a command.