Merge pull request #53 from chenxiaolong/exceptions

Fix skipped cleanup logic caused by fixing bare except lint warnings
This commit is contained in:
Andrew Gunnerson
2023-02-15 00:21:49 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ def open_signing_wrapper(f, privkey, passphrase, cert):
process.stdin.close()
signature = process.stdout.read()
except Exception:
except BaseException:
process.kill()
raise
finally:
+1 -1
View File
@@ -33,7 +33,7 @@ def open_output_file(path):
pass
os.rename(f.name, path)
except Exception:
except BaseException:
os.unlink(f.name)
raise