refs #708 handle some invalid URLs and return 404
parent
8c9fc6be3f
commit
8a369923ec
|
@ -88,6 +88,8 @@ class HTTPServerHandler(BaseHTTPRequestHandler):
|
|||
Locates witch module will process the message based on path (first folder on url path)
|
||||
"""
|
||||
try:
|
||||
if module is None:
|
||||
raise Exception ({ '_httpcode': 404, '_msg': f'Module {path[0]} not found' })
|
||||
data = module.processServerMessage(path, get_params, post_params, self)
|
||||
self.sendJsonResponse(data)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue