Unverified Commit f616dcc8 authored by pythongosssss's avatar pythongosssss Committed by GitHub
Browse files

Added handling of missing aiohttp module

parent 639d21e5
......@@ -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 = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment