Guard for missing repository file (#2664)

* Guard for missing repository file

* Update supervisor/store/data.py

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
Joakim Sørensen 2021-03-03 11:33:58 +01:00 committed by GitHub
parent 455bbc457b
commit a13a0b4770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)