]> arthur.barton.de Git - bup.git/commit
Add any pending exception to context in all __exit__ methods
authorRob Browning <rlb@defaultvalue.org>
Sun, 3 Oct 2021 17:47:17 +0000 (12:47 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 22 Nov 2021 06:33:50 +0000 (00:33 -0600)
commit16c5650034c907d7ee1fa9a2e2dc0292b71b1016
tree808e9b9e3176874bc6d634c7eb16c6ac255ff49a
parente6f05e7e43e0f3e7835140af0f1aba2336b958a9
Add any pending exception to context in all __exit__ methods

Use pending_raise() in all __exit__ methods to make sure that any
pending exception is included in the context if the body throws.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py
lib/bup/midx.py
lib/bup/repo.py
lib/bup/vfs.py