mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
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