Skip to content

Commit

Permalink
Fix #9 Catch additional exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpignet committed Jun 24, 2020
1 parent 5a8500d commit 8a1fe19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tplink_router/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _get_auth_tokens(self):
self.sysauth = regex_result.group(1)
_LOGGER.info(self.sysauth)
return True
except (ValueError, KeyError) as _:
except (ValueError, KeyError, AttributeError) as _:
_LOGGER.error("Couldn't fetch auth tokens! Response was: %s",
response.text)
return False
Expand Down

0 comments on commit 8a1fe19

Please sign in to comment.