[errorhandling] handle is_too_many_shared_folder_targets during batch upload

This commit is contained in:
samschott 2022-03-04 00:19:06 +01:00
parent 486e960721
commit c51ec01515

View File

@ -359,6 +359,9 @@ def dropbox_to_maestral_error(
"Dropbox. Please retry again later."
)
err_cls = SyncError
elif error.is_too_many_shared_folder_targets():
text = "The batch request commits files into too many different shared folders. Please limit your batch request to files contained in a single shared folder."
err_cls = SyncError
elif error.is_payload_too_large():
text = "Can only upload in chunks of at most 150 MB."
err_cls = SyncError