Browse Source

Automatic formatting commit: 2020-04-12T21:38:17.220553

Trevor Elliott 4 years ago
parent
commit
c0624a878f
2 changed files with 6 additions and 1 deletions
  1. 1 0
      lc/error.py
  2. 5 1
      lc/web.py

+ 1 - 0
lc/error.py

@@ -27,6 +27,7 @@ class BadPayload(LCException):
     def http_code(self) -> int:
         return 400
 
+
 @dataclass
 class UserExists(LCException):
     name: str

+ 5 - 1
lc/web.py

@@ -11,6 +11,7 @@ import lc.request as r
 
 T = TypeVar("T", bound=r.Request)
 
+
 @dataclass
 class ApiOK:
     response: dict
@@ -105,7 +106,10 @@ class Endpoint:
                 return ({"status": exn.http_code(), "error": str(exn)}, exn.http_code())
             else:
                 page = render(
-                    "main", title="error", content=f"shit's fucked yo: {exn}", user=None,
+                    "main",
+                    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