Fix validation output
This commit is contained in:
parent
7b3ad3cf34
commit
fe7926d9bc
4
main.py
4
main.py
|
@ -68,7 +68,6 @@ def application(env, re):
|
||||||
yield "<h1>500 Internal Server Error</h1>".encode()
|
yield "<h1>500 Internal Server Error</h1>".encode()
|
||||||
if "debug" in args:
|
if "debug" in args:
|
||||||
yield str(e).encode()
|
yield str(e).encode()
|
||||||
raise
|
|
||||||
return
|
return
|
||||||
|
|
||||||
re("200 OK", [])
|
re("200 OK", [])
|
||||||
|
@ -99,7 +98,8 @@ def application(env, re):
|
||||||
return
|
return
|
||||||
|
|
||||||
re("200 OK", [])
|
re("200 OK", [])
|
||||||
return output.encode()
|
yield output.encode()
|
||||||
|
return
|
||||||
|
|
||||||
elif rtype.lower() in ["closest", "close", "near", "nearby"]:
|
elif rtype.lower() in ["closest", "close", "near", "nearby"]:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue