mirror of
https://github.com/samschott/maestral.git
synced 2024-09-22 11:27:35 +03:00
fixed bug in handling DeleteError's due to invalid path
This commit is contained in:
parent
f09981404f
commit
78783a5c1e
@ -203,10 +203,10 @@ def api_to_maestral_error(exc, dbx_path=None, local_path=None):
|
||||
if isinstance(error, dropbox.files.DeleteError):
|
||||
title = "Could not delete item"
|
||||
if error.is_path_lookup():
|
||||
lookup_error = error.get_from_lookup()
|
||||
lookup_error = error.get_path_lookup()
|
||||
text, err_type = _get_lookup_error_msg(lookup_error)
|
||||
elif error.is_path_write():
|
||||
write_error = error.get_from_write()
|
||||
write_error = error.get_path_write()
|
||||
text, err_type = _get_write_error_msg(write_error)
|
||||
elif error.is_too_many_files():
|
||||
text = ("There are too many files in one request. Please "
|
||||
|
Loading…
Reference in New Issue
Block a user