Remove unnecessary try-else (5) (#86164)

This commit is contained in:
Marc Mueller 2023-01-18 14:10:13 +01:00 committed by GitHub
parent d26484d482
commit 6d336ec136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 26 additions and 29 deletions

View file

@ -136,9 +136,9 @@ class GitHubDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
# These are unexpected and we log the trace to help with troubleshooting
LOGGER.exception(exception)
raise UpdateFailed(exception) from exception
else:
self._last_response = response
return response.data["data"]["repository"]
self._last_response = response
return response.data["data"]["repository"]
async def _handle_event(self, event: GitHubEventModel) -> None:
"""Handle an event."""