mirror of
https://github.com/basicswap/basicswap.git
synced 2025-04-06 14:27:30 +00:00
Lint
This commit is contained in:
parent
0a706df907
commit
2813ba7930
1 changed files with 3 additions and 1 deletions
|
@ -646,7 +646,9 @@ class HttpHandler(BaseHTTPRequestHandler):
|
|||
if not self.is_authenticated():
|
||||
if page == "json":
|
||||
self.putHeaders(401, "application/json")
|
||||
self.wfile.write(json.dumps({"error": "Unauthorized"}).encode("utf-8"))
|
||||
self.wfile.write(
|
||||
json.dumps({"error": "Unauthorized"}).encode("utf-8")
|
||||
)
|
||||
return
|
||||
else:
|
||||
self.send_response(302)
|
||||
|
|
Loading…
Reference in a new issue