We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0dbd86 commit a0783b5Copy full SHA for a0783b5
1 file changed
llms/extensions/gallery/__init__.py
@@ -19,6 +19,7 @@ def get_gallery_db():
19
try:
20
db_path = os.path.join(ctx.get_user_path(), "gallery", "gallery.sqlite")
21
g_db = GalleryDB(ctx, db_path)
22
+ ctx.register_shutdown_handler(g_db.db.close)
23
except Exception as e:
24
ctx.err("Failed to init GalleryDB", e)
25
return g_db
0 commit comments