]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Tweak exception handling 1491/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 23 Apr 2023 13:47:38 +0000 (15:47 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 24 Apr 2023 19:00:37 +0000 (21:00 +0200)
commit353546cee81a1c49bf6c43d4d02ee987865058ac
tree4375251cb6913110822620e6f844f1aa360ce664
parent3a6db500cbcf77fbbf2a4082ec5b8fa0f514c715
Tweak exception handling

- Remove optional exception argument of die() in favor of just using
  logging.error() and re-raising the exception
- Instead of raising RuntimeError in die(), just call sys.exit()
  instead which raises SystemExit.
- Show stacktrace of every exception that isn't SystemExit,
  KeyboardInterrupt or subprocess.CalledProcessError.
mkosi/__main__.py
mkosi/log.py
mkosi/run.py
tests/test_parse_load_args.py