From bdbe0b638fc257e9b0d1eeb72967f829180c1378 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 29 Apr 2023 16:22:05 +0000 Subject: [PATCH] improve error view of browse.channel slightly --- app/browse/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/browse/__init__.py b/app/browse/__init__.py index 00da8ee..586dcf9 100644 --- a/app/browse/__init__.py +++ b/app/browse/__init__.py @@ -78,7 +78,8 @@ def channel(channel_id, subpage="videos"): return fallback_route(channel_id, subpage) if error: - return error, 400 # todo: ugly + # mostly 'This channel does not exist' or 'This account has been terminated', hence 404 + raise NotFound(error) # new seperated videos/livestreams/shorts don't return metadata xmlfeed = fetch_xml("channel_id", channel_id) -- 2.39.3