mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
Merge pull request #53 from chenxiaolong/exceptions
Fix skipped cleanup logic caused by fixing bare except lint warnings
This commit is contained in:
+1
-1
@@ -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
@@ -33,7 +33,7 @@ def open_output_file(path):
|
||||
pass
|
||||
|
||||
os.rename(f.name, path)
|
||||
except Exception:
|
||||
except BaseException:
|
||||
os.unlink(f.name)
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user