mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +00:00
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:
parent
455bbc457b
commit
a13a0b4770
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user