Fix syntax error in models.py import indentation

- Corrected indentation of logging_utils import to be inside the try block
- Fixed malformed try/except structure that was causing SyntaxError
parent b92fbefc
...@@ -336,7 +336,7 @@ def estimate_model_vram_requirements(model_path: str) -> int: ...@@ -336,7 +336,7 @@ def estimate_model_vram_requirements(model_path: str) -> int:
# First, try to get from database # First, try to get from database
try: try:
from .database import get_db_connection from .database import get_db_connection
from .logging_utils import log_message from .logging_utils import log_message
conn = get_db_connection() conn = get_db_connection()
cursor = conn.cursor() cursor = conn.cursor()
cursor.execute('SELECT vram_estimate, vram_overhead_gb FROM models WHERE path = ?', (model_path,)) cursor.execute('SELECT vram_estimate, vram_overhead_gb FROM models WHERE path = ?', (model_path,))
......
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