Browse Source

Automatic formatting commit: 2020-04-14T22:04:48.865476

Getty Ritter 4 years ago
parent
commit
0f93a9833b
1 changed files with 6 additions and 5 deletions
  1. 6 5
      lc/web.py

+ 6 - 5
lc/web.py

@@ -106,11 +106,12 @@ class Endpoint:
             if flask.request.content_type == "application/json":
                 return ({"status": exn.http_code(), "error": str(exn)}, exn.http_code())
             else:
-                page = render("main", v.Page(
-                    title="error",
-                    content=f"shit's fucked yo: {exn}",
-                    user=None,
-                ))
+                page = render(
+                    "main",
+                    v.Page(
+                        title="error", content=f"shit's fucked yo: {exn}", user=None,
+                    ),
+                )
                 return (page, exn.http_code())
         # also maybe we tried to redirect, so just do that
         except e.LCRedirect as exn: