Commit eae84c85 authored by Edward Cree's avatar Edward Cree Committed by Eric S. Raymond

Fix exception handling in popen_or_die

Prevents exceptions getting swallowed.
parent c1347925
......@@ -6409,8 +6409,7 @@ class popen_or_die:
if extype:
if verbose:
complain(b"fatal exception in popen_or_die.")
raise extype(value)
if self.fp.close() is not None:
if self.fp.close() is not None and not extype:
raise Fatal(b"%s%s returned error." % (self.command, self.legend))
return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment