Skip to content

Commit 3b065cf

Browse files
committed
Exit with exitcode of subprocess.
1 parent 6afd1de commit 3b065cf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lambda_local/__init__.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414

1515
def main():
1616
args = parse_args()
17-
try:
18-
p = Process(target=run, args=(args,))
19-
p.start()
20-
p.join()
21-
except:
22-
e = sys.exc_info()
23-
print(e[1])
17+
18+
p = Process(target=run, args=(args,))
19+
p.start()
20+
p.join()
21+
22+
sys.exit(p.exitcode)
2423

2524

2625
def parse_args():

0 commit comments

Comments
 (0)