Skip to content

Commit f84efad

Browse files
Potential fix for code scanning alert no. 35: Unused local variable
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 4b516de commit f84efad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tibber/data_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def _read_error_response(self, response: aiohttp.ClientResponse) -> tuple[
179179
try:
180180
error_data = await response.json()
181181
except (aiohttp.ContentTypeError, ValueError):
182-
error_data = {}
182+
pass
183183
else:
184184
preferred_detail = (
185185
error_data.get("detail") or error_data.get("error_description") or error_data.get("error")

0 commit comments

Comments
 (0)