Skip to content

Commit

Permalink
try fix #36
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii committed May 20, 2024
1 parent d743841 commit b7164c3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions unifi_respondd/unifi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ def get_infos():
site_id=site["name"],
ssl_verify=cfg.ssl_verify,
)
else:
c.switch_site(site["desc"])
else:
try:
c.switch_site(site["desc"])
except Exception as ex:
logger.error("Error: %s" % (ex))
continue

aps_for_site = c.get_aps()
clients = c.get_clients()
for ap in aps_for_site:
Expand Down

0 comments on commit b7164c3

Please sign in to comment.