Neon-AI commited on
Commit
9c8af04
·
verified ·
1 Parent(s): b14b19c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def search_anime(keyword: str):
59
  results.append({
60
  "title": title_elem.text.strip() if title_elem else None,
61
  "url": title_elem["href"] if title_elem else None,
62
- "thumbnail": thumb_elem["src"] if thumb_elem else None
63
  })
64
 
65
  return {"keyword": keyword, "results": results}
 
59
  results.append({
60
  "title": title_elem.text.strip() if title_elem else None,
61
  "url": title_elem["href"] if title_elem else None,
62
+ "thumbnail": thumb_elem.get("src") if thumb_elem else None
63
  })
64
 
65
  return {"keyword": keyword, "results": results}