Skip to content

Commit

Permalink
raise on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Apr 23, 2020
1 parent a5d19ce commit 81b15f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/hacs/helpers/register_repository.py
Expand Up @@ -33,8 +33,10 @@ async def register_repository(full_name, category, check=True, ref=None):
hacs.common.skip.append(repository.data.full_name)
if not hacs.system.status.startup:
hacs.logger.error(f"Validation for {full_name} failed.")
if hacs.action:
raise HacsException(f"Validation for {full_name} failed.")
return repository.validate.errors
if ref is not None:
if hacs.action:
repository.logger.info("Validation complete")
else:
repository.logger.info("Registration complete")
Expand Down

0 comments on commit 81b15f7

Please sign in to comment.