Skip to content

Commit 6100257

Browse files
authored
Merge pull request #130 from tivaliy/master
Align path to method of the error instance in example code
2 parents c49834c + 5d6b482 commit 6100257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/back-up-and-restore/backup-and-restore-example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def backup():
2828
# This checks for the specific error where a user doesn't have
2929
# enough Dropbox space quota to upload this file
3030
if (err.error.is_path() and
31-
err.error.get_path().error.is_insufficient_space()):
31+
err.error.get_path().reason.is_insufficient_space()):
3232
sys.exit("ERROR: Cannot back up; insufficient space.")
3333
elif err.user_message_text:
3434
print(err.user_message_text)

0 commit comments

Comments
 (0)