Fix issue when a zero byte _persistent_storage.yaml exists.
This commit is contained in:
parent
c225662c71
commit
d4be3387cf
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue