Update server.py

This commit is contained in:
Nova Cat 2025-01-08 22:08:06 -08:00
parent 1bfc6fdccd
commit b258e5dfe9

View file

@ -90,7 +90,7 @@ for mod in modules:
spc.loader.exec_module(temp_module) spc.loader.exec_module(temp_module)
for j in temp_module.__ircat_requires__: for j in temp_module.__ircat_requires__:
if not j in data: if not j in data:
raise exception(f"Module {mod} requires {j} in configuration.") raise Exception(f"Module {mod} requires {j} in configuration.")
if temp_module.__ircat_type__ == "sql.provider": if temp_module.__ircat_type__ == "sql.provider":
if modules["sql_provider"] != None: if modules["sql_provider"] != None:
modules["sql_provider"] = temp_module modules["sql_provider"] = temp_module