fixes
This commit is contained in:
1 parent
7c947f51b6
commit
181d980e48
3 files changed
+7
-2
No files matched your search
@@ -167,6 +167,10 @@ async def s_api_v1_content_friendly_list(request):
|
||||
for content in request.ctx.db_session.query(StoredContent).filter(
|
||||
StoredContent.type == 'onchain/content'
|
||||
).all():
|
||||
if not content.meta.get('metadata_cid'):
|
||||
make_log("Content", f"Content {content.cid.serialize_v2()} has no metadata", level='warning')
|
||||
continue
|
||||
|
||||
metadata_content = StoredContent.from_cid(request.ctx.db_session, content.meta.get('metadata_cid'))
|
||||
with open(metadata_content.filepath, 'r') as f:
|
||||
metadata = json.loads(f.read())
|
||||
|
||||
Reference in new issue
Block a user