Skip to content

Commit 7661f2d

Browse files
committed
fix(lastfm.py): minor fix in error handling
1 parent c49a22a commit 7661f2d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

user_scanner/email_scan/music/lastfm.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def _check(email: str) -> Result:
4848
return Result.available()
4949

5050
else:
51-
return Result.error(data)
51+
return Result.error("Unexpected response body, report it via GitHub issues")
5252

5353
except httpx.TimeoutException:
5454
return Result.error("Connection timed out")
@@ -58,3 +58,11 @@ async def _check(email: str) -> Result:
5858

5959
async def validate_lastfm(email: str) -> Result:
6060
return await _check(email)
61+
62+
63+
64+
65+
66+
67+
68+

0 commit comments

Comments
 (0)