mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Check if exit code is none before converting to int (#843)
This commit is contained in:
parent
eb478e3a24
commit
04cdf337ff
1 changed files with 1 additions and 1 deletions
|
|
@ -139,5 +139,5 @@ def _run(argv, addr, _pydevd=pydevd, _install=install, **kwargs):
|
|||
try:
|
||||
_pydevd.main()
|
||||
except SystemExit as ex:
|
||||
daemon.exitcode = int(ex.code)
|
||||
daemon.exitcode = 0 if ex.code is None else int(ex.code)
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue