From 04cdf337ffa4874a54d280f5d5eac55cc2aac2eb Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Wed, 26 Sep 2018 00:31:20 -0700 Subject: [PATCH] Check if exit code is none before converting to int (#843) --- ptvsd/_local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptvsd/_local.py b/ptvsd/_local.py index 7872cb1c..09f671ea 100644 --- a/ptvsd/_local.py +++ b/ptvsd/_local.py @@ -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