fix
This commit is contained in:
1 parent
bc4730b7c9
commit
f24a4faf08
1 file changed
+4
-1
@@ -4,6 +4,7 @@ from aiogram import types, Router, F
|
||||
from app.core._config import WEB_APP_URLS
|
||||
from app.core._keyboards import get_inline_keyboard
|
||||
from app.core._utils.tg_process_template import tg_process_template
|
||||
from app.core.logger import make_log
|
||||
from app.core.models.node_storage import StoredContent
|
||||
import json
|
||||
|
||||
@@ -24,9 +25,11 @@ async def t_callback_owned_content(query: types.CallbackQuery, memory=None, user
|
||||
).all():
|
||||
try:
|
||||
metadata_content = StoredContent.from_cid(db_session, content.json_format()['metadata_cid'])
|
||||
make_log("OwnedContent", f"Metadata content: {metadata_content.file_path}")
|
||||
with open(metadata_content.file_path, 'r') as f:
|
||||
metadata_content_json = json.loads(f.read())
|
||||
except:
|
||||
except BaseException as e:
|
||||
make_log("OwnedContent", f"Can't get metadata content: {e}", level='warning')
|
||||
continue
|
||||
|
||||
content_list.append([
|
||||
|
||||
Reference in new issue
Block a user