Skip to content

Commit

Permalink
main: initialize 'p' before the try/finally that uses it.
Browse files Browse the repository at this point in the history
Otherwise, if we fail to run the subprocess, the finally section doesn't
work quite right.
  • Loading branch information
apenwarr committed Mar 3, 2010
1 parent 9872d84 commit 22de155
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Expand Up @@ -116,6 +116,7 @@ def handler(signum, frame):
signal.signal(signal.SIGINT, handler)

ret = 95
p = None
try:
try:
p = subprocess.Popen([subpath(subcmd)] + argv[2:],
Expand Down

0 comments on commit 22de155

Please sign in to comment.