Skip to content

Commit

Permalink
Handle HacsRepositoryArchivedException during registration (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 30, 2021
1 parent 4f11d15 commit b4a23ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from .exceptions import (
HacsException,
HacsExpectedException,
HacsRepositoryArchivedException,
HacsRepositoryExistException,
)
from .repositories import RERPOSITORY_CLASSES
Expand Down Expand Up @@ -506,7 +507,7 @@ async def async_register_repository(
repository.logger.info("%s Validation completed", repository)
else:
repository.logger.info("%s Registration completed", repository)
except HacsRepositoryExistException:
except (HacsRepositoryExistException, HacsRepositoryArchivedException):
return
except AIOGitHubAPIException as exception:
self.common.skip.append(repository.data.full_name)
Expand Down

0 comments on commit b4a23ef

Please # to comment.