diff options
author | Grégoire Détrez <gregoire@mullvad.net> | 2022-06-28 17:22:42 +0200 |
---|---|---|
committer | Grégoire Détrez <gregoire@mullvad.net> | 2022-06-28 17:29:42 +0200 |
commit | d0af9908d289b82bc82bb2fa9ce0ab0554fb6c71 (patch) | |
tree | 50ac54bede0eb78da0947e84ba75fdb71f7f17e6 | |
parent | d27fab1ee267947610d7fdf882ad49850ebeba74 (diff) |
Change ERR_USAGE exit code
Cpython already uses exit code 1 for uncaught exception, this uses the
vaguely-standardized value of 64 from `os.EX_USAGE` instead.
-rwxr-xr-x | sigsum-witness.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigsum-witness.py b/sigsum-witness.py index 5cd9f7a..3c0d643 100755 --- a/sigsum-witness.py +++ b/sigsum-witness.py @@ -35,7 +35,7 @@ BASE_URL_DEFAULT = 'http://poc.sigsum.org:4780/' CONFIG_DIR_DEFAULT = os.path.expanduser('~/.config/sigsum-witness/') ERR_OK = 0 -ERR_USAGE = 1 +ERR_USAGE = os.EX_USAGE ERR_TREEHEAD_READ = 2 ERR_TREEHEAD_FETCH = 3 ERR_TREEHEAD_SIGNATURE_INVALID = 4 |