Update server.py

This commit is contained in:
Nova Cat 2025-01-08 22:13:27 -08:00
parent 7613fd270c
commit 9794a20fd5

View file

@ -92,7 +92,7 @@ for mod in modules:
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 mods["sql_provider"] != None: if mods["sql_provider"] == None:
mods["sql_provider"] = temp_module mods["sql_provider"] = temp_module
else: else:
raise Exception(f"Tried to import {mod} as an SQL provider, but something's already the SQL provider.") raise Exception(f"Tried to import {mod} as an SQL provider, but something's already the SQL provider.")