mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 10:15:27 -04:00
fix: _resolve_user_upload_path crashes on a non-dict resolve_upload result (#1715)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user