Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
f616dcc8
Unverified
Commit
f616dcc8
authored
Feb 12, 2023
by
pythongosssss
Committed by
GitHub
Feb 12, 2023
Browse files
Added handling of missing aiohttp module
parent
639d21e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
main.py
main.py
+10
-3
No files found.
main.py
View file @
f616dcc8
...
...
@@ -7,6 +7,16 @@ import heapq
import
traceback
import
asyncio
try
:
import
aiohttp
from
aiohttp
import
web
except
ImportError
:
print
(
"Module 'aiohttp' not installed. Please install it via:"
)
print
(
"pip install aiohttp"
)
print
(
"or"
)
print
(
"pip install -r requirements.txt"
)
sys
.
exit
()
if
__name__
==
"__main__"
:
if
'--help'
in
sys
.
argv
:
print
(
"Valid Command line Arguments:"
)
...
...
@@ -346,9 +356,6 @@ class PromptQueue:
return
True
return
False
import
aiohttp
from
aiohttp
import
web
def
get_queue_info
(
prompt_queue
):
prompt_info
=
{}
exec_info
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment