Fix issue when a zero byte _persistent_storage.yaml exists.
This commit is contained in:
2
Utils.py
2
Utils.py
@@ -231,6 +231,8 @@ def persistent_load() -> typing.Dict[dict]:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
import logging
|
import logging
|
||||||
logging.debug(f"Could not read store: {e}")
|
logging.debug(f"Could not read store: {e}")
|
||||||
|
if storage is None:
|
||||||
|
storage = {}
|
||||||
return storage
|
return storage
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user