1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-08-16 03:52:26 -04:00

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

View File

@ -92,7 +92,7 @@ class ObjectStoreMixin:
f"{self.__class__.__name__}::Loaded {len(self)} entries from disk.", f"{self.__class__.__name__}::Loaded {len(self)} entries from disk.",
) )
LOG.debug(f"{self.data}") 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(f"Failed to UnPickle {self._save_filename()}")
LOG.error(ex) LOG.error(ex)
self.data = {} self.data = {}