fixed the failure during loading for objectstore

This patch fixes a silent failure of loading data from the objectstore
This commit is contained in:
Hemna 2021-11-13 15:07:28 -05:00
parent deec249c45
commit 5e50792e80
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class ObjectStoreMixin:
f"{self.__class__.__name__}::Loaded {len(self)} entries from disk.",
)
LOG.debug(f"{self.data}")
except pickle.UnpicklingError as ex:
except (pickle.UnpicklingError, Exception) as ex:
LOG.error(f"Failed to UnPickle {self._save_filename()}")
LOG.error(ex)
self.data = {}