From d4be3387cf6be4b7f6d75ab5708bae7663603786 Mon Sep 17 00:00:00 2001 From: caitsith2 Date: Wed, 29 Apr 2020 22:42:26 -0700 Subject: [PATCH] Fix issue when a zero byte _persistent_storage.yaml exists. --- Utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utils.py b/Utils.py index 6ed5df29..8ad710c1 100644 --- a/Utils.py +++ b/Utils.py @@ -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