fugue / credstash

A little utility for managing credentials in the cloud
Apache License 2.0
2.06k stars 215 forks source link

Don't catch errors when imported as lib #280

Closed mike-luminal closed 4 years ago

mike-luminal commented 4 years ago

Resolves #276

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.