Check if exit code is none before converting to int (#843)

This commit is contained in:
Karthik Nadig 2018-09-26 00:31:20 -07:00 committed by GitHub
parent eb478e3a24
commit 04cdf337ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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