Fix issue when a zero byte _persistent_storage.yaml exists.

This commit is contained in:
caitsith2 2020-04-29 22:42:26 -07:00
parent c225662c71
commit d4be3387cf
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ def persistent_load() -> typing.Dict[dict]:
except Exception as e:
import logging
logging.debug(f"Could not read store: {e}")
if storage is None:
storage = {}
return storage