mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
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>
|
||
|---|---|---|
| .. | ||
| algo | ||
| asyncio | ||
| auth | ||
| db | ||
| stree | ||
| ArgsContainer.py | ||
| cast.py | ||
| Cmd.py | ||
| Cmds.py | ||
| Config.py | ||
| CppState.py | ||
| log.py | ||
| Makefile | ||
| misc.py | ||
| multi_key_dict.py | ||
| Object.py | ||
| Process.py | ||
| RedirectStdIO.py | ||
| Signals.py | ||
| StopWatch.py | ||