Merge branch 'development' into development

This commit is contained in:
Peter Baylies
2022-09-16 08:52:27 -04:00
committed by GitHub
3 changed files with 11 additions and 0 deletions

View File

@@ -249,6 +249,15 @@ class DreamServer(BaseHTTPRequestHandler):
except CanceledException:
print(f"Canceled.")
return
except Exception as e:
print("Error happened")
print(e)
self.wfile.write(bytes(json.dumps(
{'event': 'error',
'message': str(e),
'type': e.__class__.__name__}
) + '\n',"utf-8"))
raise e
class ThreadingDreamServer(ThreadingHTTPServer):