mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ruff
This commit is contained in:
parent
6461f4758d
commit
1d8b7e2bcf
@ -1,5 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from invokeai.app.services.invoker import Invoker
|
from invokeai.app.services.invoker import Invoker
|
||||||
from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase
|
from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase
|
||||||
from invokeai.app.services.style_preset_records.style_preset_records_base import StylePresetRecordsStorageBase
|
from invokeai.app.services.style_preset_records.style_preset_records_base import StylePresetRecordsStorageBase
|
||||||
@ -160,7 +161,7 @@ class SqliteStylePresetRecordsStorage(StylePresetRecordsStorageBase):
|
|||||||
for preset in presets:
|
for preset in presets:
|
||||||
style_preset = StylePresetWithoutId(is_default=True, **preset)
|
style_preset = StylePresetWithoutId(is_default=True, **preset)
|
||||||
self.create(style_preset)
|
self.create(style_preset)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
raise Exception()
|
raise Exception()
|
||||||
|
|
||||||
self._conn.commit()
|
self._conn.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user