fix: _resolve_user_upload_path crashes on a non-dict resolve_upload result (#1715)

This commit is contained in:
Afonso Coutinho
2026-06-03 05:34:33 +01:00
committed by GitHub
parent dd4bb81fa0
commit 94c943049b
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ def _resolve_user_upload_path(
owner=owner,
auth_manager=auth_manager,
)
if not resolved:
if not isinstance(resolved, dict) or not resolved:
return None
path = resolved.get("path")
upload_dir = getattr(upload_handler, "upload_dir", None)