diff --git a/main.py b/main.py index e4d3fcf..cab8601 100644 --- a/main.py +++ b/main.py @@ -173,13 +173,13 @@ class WebServer: async def main(): s = WebServer() - if not s.directory: + if not config.directory: print("directory not set!") exit(1) - if not s.preset_file: + if not config.preset_file: print("preset file not set!") exit(1) - if not os.path.isfile(s.preset_file): + if not os.path.isfile(config.preset_file): print("invalid preset file") exit(1) await s.start()