Skip to content

Commit

Permalink
Fix: card_search now fails silently
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc-Mcgrady committed Jan 7, 2025
1 parent c2147d7 commit 2341f6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def new_refresh(self: NewDeckStats):

def card_search() -> bytes:
search = request.data
return Response(str(list(mw.col.find_cards(search))))
try:
return Response(str(list(mw.col.find_cards(search))))
except:
return None

post_handlers["cardSearch"] = card_search

Expand Down

0 comments on commit 2341f6b

Please sign in to comment.