mirror of
https://github.com/chubin/wttr.in
synced 2025-01-12 12:08:47 +00:00
Generate exception page (commented out)
This commit is contained in:
parent
ba19ce8264
commit
bbf0d6835f
1 changed files with 2 additions and 0 deletions
|
@ -375,6 +375,8 @@ def wttr(location, request):
|
||||||
if not response:
|
if not response:
|
||||||
parsed_query = parse_request(location, request, query)
|
parsed_query = parse_request(location, request, query)
|
||||||
response = _response(parsed_query, query)
|
response = _response(parsed_query, query)
|
||||||
|
#if not response or (isinstance(response, str) and not response.strip()):
|
||||||
|
# return RuntimeError("Empty answer")
|
||||||
|
|
||||||
if parsed_query["location"] == NOT_FOUND_LOCATION:
|
if parsed_query["location"] == NOT_FOUND_LOCATION:
|
||||||
http_code = 404
|
http_code = 404
|
||||||
|
|
Loading…
Reference in a new issue