Python utility library
  • Python 98%
  • Makefile 1.7%
  • Shell 0.3%
Find a file
Jan Lindemann d35a5588cd Cmds.__run(): Don't exit(0)

WSGI doesn't like sys.exit() being called, so avoid it. Two cases need to be taken into consideration:

1. No exception thrown by self.args.func()

The variable exit_status is zero, we can check that and _not_ call sys.exit()

2. Exception thrown by self.args.func()

In that case, the exception should be raised, to be caught by WSGI / ASGI whatever to do what they want with it. The code calling sys.exit() is never reached. Hence, we need to add --backtrace to the invocation options.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-07-05 12:27:11 +02:00
bin Rename the MODDIR makefile variable to JWBDIR 2019-06-29 23:32:20 +02:00
conf Rename the MODDIR makefile variable to JWBDIR 2019-06-29 23:32:20 +02:00
make cast.cast_str_to_timedelta(): Add conversion method 2025-05-28 11:12:49 +02:00
scripts Add missing async keywords to jwutils.Cmd.run() reimplementations 2020-02-10 19:49:46 +01:00
test Add module jwutils.cast 2025-01-16 12:39:20 +01:00
tools Cmds.__run(): Don't exit(0) 2025-07-05 12:27:11 +02:00
.gitignore grammar.py et al: Centralize more code 2017-10-29 18:25:55 +01:00
HASH Release 1.0.0-24@suse-tumbleweed/x86_64 2025-05-12 18:07:08 +00:00
Makefile Rename the MODDIR makefile variable to JWBDIR 2019-06-29 23:32:20 +02:00
RELEASES Release 1.0.0-24@suse-tumbleweed/x86_64 2025-05-12 18:07:08 +00:00
VERSION Start version: 1.0.0-24 2025-05-12 18:06:37 +00:00