mirror of
https://git.wownero.com/dsc/ircradio.git
synced 2024-08-15 01:03:15 +00:00
Report error for request search
This commit is contained in:
parent
b4fbe65002
commit
6302eb858f
1 changed files with 4 additions and 1 deletions
|
@ -121,7 +121,10 @@ class Commands:
|
||||||
send_message(target=target, message="usage: !request <id>")
|
send_message(target=target, message="usage: !request <id>")
|
||||||
|
|
||||||
needle = " ".join(args)
|
needle = " ".join(args)
|
||||||
|
try:
|
||||||
songs = Song.search(needle)
|
songs = Song.search(needle)
|
||||||
|
except Exception as ex:
|
||||||
|
return await send_message(target, f"{ex}")
|
||||||
if not songs:
|
if not songs:
|
||||||
return await send_message(target, "Not found!")
|
return await send_message(target, "Not found!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue