suka
This commit is contained in:
6
main.py
6
main.py
@@ -173,13 +173,13 @@ class WebServer:
|
|||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
s = WebServer()
|
s = WebServer()
|
||||||
if not s.directory:
|
if not config.directory:
|
||||||
print("directory not set!")
|
print("directory not set!")
|
||||||
exit(1)
|
exit(1)
|
||||||
if not s.preset_file:
|
if not config.preset_file:
|
||||||
print("preset file not set!")
|
print("preset file not set!")
|
||||||
exit(1)
|
exit(1)
|
||||||
if not os.path.isfile(s.preset_file):
|
if not os.path.isfile(config.preset_file):
|
||||||
print("invalid preset file")
|
print("invalid preset file")
|
||||||
exit(1)
|
exit(1)
|
||||||
await s.start()
|
await s.start()
|
||||||
|
Reference in New Issue
Block a user