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()
|
||||
if "debug" in args:
|
||||
yield str(e).encode()
|
||||
raise
|
||||
return
|
||||
|
||||
re("200 OK", [])
|
||||
|
@ -99,7 +98,8 @@ def application(env, re):
|
|||
return
|
||||
|
||||
re("200 OK", [])
|
||||
return output.encode()
|
||||
yield output.encode()
|
||||
return
|
||||
|
||||
elif rtype.lower() in ["closest", "close", "near", "nearby"]:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue