]> arthur.barton.de Git - bup.git/commit
MetaStoreReader: protect __del__ against init failures
authorRob Browning <rlb@defaultvalue.org>
Sun, 19 Dec 2021 21:11:28 +0000 (15:11 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Dec 2021 21:12:54 +0000 (15:12 -0600)
commit9478e2d88634bd22b3d0145b76926d719e457faa
treeff7ab021ca8384a4cc6221baf926d9dd9e3229e2
parent2e6cfa6156f8dd94b76f1496fa0d1e4dde5a12db
MetaStoreReader: protect __del__ against init failures

The previous code could crash in __del__ if init's open() threw.

Thanks to Johannes Berg for reporting the issue.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/index.py