[videogames] Fix bug in scraper
This commit is contained in:
@ -31,7 +31,7 @@ def scrape_game_name_from_adb(name: str) -> str:
|
||||
try:
|
||||
resp = requests.get(url, headers=headers)
|
||||
except requests.ConnectionError:
|
||||
raise GameNotFound(f"Lookup failed with code {resp.status_code}")
|
||||
raise GameNotFound("Lookup failed with ConnectionError")
|
||||
if not resp.ok:
|
||||
raise GameNotFound(f"Lookup failed with code {resp.status_code}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user