fix misprint

This commit is contained in:
user 2024-04-05 13:43:49 +03:00
parent f24a4faf08
commit 383f306d5d
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ async def t_callback_owned_content(query: types.CallbackQuery, memory=None, user
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:
with open(metadata_content.filepath, 'r') as f:
metadata_content_json = json.loads(f.read())
except BaseException as e:
make_log("OwnedContent", f"Can't get metadata content: {e}", level='warning')