From 30dc612825eeac1632a5984fb2810e1cebbaf72a Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Mon, 23 Mar 2020 23:42:45 +0800 Subject: [PATCH] fix: 204 is not an error --- interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.py b/interface.py index 6368da4..e4e8d28 100644 --- a/interface.py +++ b/interface.py @@ -414,7 +414,7 @@ def library(): pass if not total_count: - abort(204) + return ('', 204) if request.form['action'] == 'add': items = dicts_to_items(var.bot, var.music_db.query_music(condition))