From 67018e5a59b88775b08dda98f3cd050979cd4981 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 13 Jan 2020 14:53:05 +0100 Subject: [PATCH] Change !fw error message --- royalpack/commands/funkwhale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalpack/commands/funkwhale.py b/royalpack/commands/funkwhale.py index cecf1d7b..3a5be8a2 100644 --- a/royalpack/commands/funkwhale.py +++ b/royalpack/commands/funkwhale.py @@ -20,5 +20,5 @@ class FunkwhaleCommand(PlayCommand): f"/api/v1/search?query={search}") as response: j = await response.json() if len(j["tracks"]) < 1: - raise InvalidInputError("Nessun video trovato.") + raise UserError("Nessun file audio trovato con il nome richiesto.") return f'{self.config["Funkwhale"]["instance_url"]}{j["tracks"][0]["listen_url"]}'