Skip to content

Commit

Permalink
handle store error during finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed May 29, 2024
1 parent f88951d commit 819d187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/maggma/core/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from monty.json import MontyDecoder, MSONable

from maggma.core.store import Store
from maggma.core.store import Store, StoreError
from maggma.utils import TqdmLoggingHandler, grouper, tqdm


Expand Down Expand Up @@ -114,7 +114,7 @@ def finalize(self):
for store in self.sources + self.targets:
try:
store.close()
except AttributeError:
except (AttributeError, StoreError):

Check warning on line 117 in src/maggma/core/builder.py

View check run for this annotation

Codecov / codecov/patch

src/maggma/core/builder.py#L117

Added line #L117 was not covered by tests
continue

def run(self, log_level=logging.DEBUG):
Expand Down

0 comments on commit 819d187

Please sign in to comment.