mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-05 22:05:20 -05:00
Merge branch 'development' into development
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user