Skip to content

Invidious is an alternative front-end to YouTube

routes: remove useless 'locale' variable in error 505 handler

Samantaz Fox848a60aa9bfc
diff --git a/src/invidious.cr b/src/invidious.cr
index aff879e3..0601d5b2 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -191,7 +191,6 @@ error 404 do |env|
end
error 500 do |env, ex|
- locale = env.get("preferences").as(Preferences).locale
error_template(500, ex)
end