Skip to content

Commit

Permalink
fixed ths slug error by reading [0] wrongly
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-crkn committed Nov 6, 2024
1 parent 6f067a5 commit f5bc5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/upload_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def upload_manifest_backend(
raise HTTPException(status_code=500, detail="Failed to read the uploaded file.")
manifest = json.loads(content)
try:
slug_value_dict = get_slug_in_metadata(manifest['metadata'])[0]
slug_value_dict = get_slug_in_metadata(manifest['metadata'])
slug = slug_value_dict[0]
except Exception as e:
logger.error(f"Error extracting slug from manifest: {e}")
Expand Down

0 comments on commit f5bc5d7

Please sign in to comment.