From a13a0b4770f50f56c58dc42f8a0be90243a6005e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 3 Mar 2021 11:33:58 +0100 Subject: [PATCH] Guard for missing repository file (#2664) * Guard for missing repository file * Update supervisor/store/data.py Co-authored-by: Pascal Vizeli Co-authored-by: Pascal Vizeli --- supervisor/store/data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/supervisor/store/data.py b/supervisor/store/data.py index f9e666d68..1a5103231 100644 --- a/supervisor/store/data.py +++ b/supervisor/store/data.py @@ -65,6 +65,10 @@ class StoreData(CoreSysAttributes): path, "repository", FILE_SUFFIX_CONFIGURATION ) + if repository_file is None: + _LOGGER.warning("No repository information exists at %s", path) + return + try: repository_info = SCHEMA_REPOSITORY_CONFIG( read_json_or_yaml_file(repository_file)