Keep disconnect intent explicit through server cleanup
This commit is contained in:
parent
ca5b20d2e6
commit
7744fe3f8b
1 changed files with 2 additions and 0 deletions
|
|
@ -383,6 +383,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||
if result is False:
|
||||
return j(self, {'error': 'not found'}, status=404)
|
||||
except _CLIENT_DISCONNECT_ERRORS:
|
||||
# Expected disconnect path; do not convert it into a misleading server 500.
|
||||
return
|
||||
except Exception:
|
||||
self._safe_webui_print(f'[webui] ERROR {self.command} {self.path}\n' + traceback.format_exc())
|
||||
|
|
@ -410,6 +411,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||
if result is False:
|
||||
return j(self, {'error': 'not found'}, status=404)
|
||||
except _CLIENT_DISCONNECT_ERRORS:
|
||||
# Expected disconnect path; do not convert it into a misleading server 500.
|
||||
return
|
||||
except Exception:
|
||||
self._safe_webui_print(f'[webui] ERROR {self.command} {self.path}\n' + traceback.format_exc())
|
||||
|
|
|
|||
Loading…
Reference in a new issue