From 1d8b7e2bcf617b5f0297e1ea12c48dc40220c1c4 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Thu, 8 Aug 2024 15:08:45 -0400 Subject: [PATCH] ruff --- .../style_preset_records/style_preset_records_sqlite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/app/services/style_preset_records/style_preset_records_sqlite.py b/invokeai/app/services/style_preset_records/style_preset_records_sqlite.py index 05675a0d6b..96ff7050ba 100644 --- a/invokeai/app/services/style_preset_records/style_preset_records_sqlite.py +++ b/invokeai/app/services/style_preset_records/style_preset_records_sqlite.py @@ -1,5 +1,6 @@ import json from pathlib import Path + from invokeai.app.services.invoker import Invoker from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase from invokeai.app.services.style_preset_records.style_preset_records_base import StylePresetRecordsStorageBase @@ -160,7 +161,7 @@ class SqliteStylePresetRecordsStorage(StylePresetRecordsStorageBase): for preset in presets: style_preset = StylePresetWithoutId(is_default=True, **preset) self.create(style_preset) - except Exception as e: + except Exception: raise Exception() self._conn.commit()