backups: Handle permission error during chown

This happens on FAT file systems, where chown operation is not
possible.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2018-10-22 18:19:02 -04:00
parent 6be6b847fd
commit edcf4a5619
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -141,7 +141,10 @@ def subcommand_export(arguments):
arguments.filename
], check=True)
shutil.chown(arguments.filename, user='plinth', group='plinth')
try:
shutil.chown(arguments.filename, user='plinth', group='plinth')
except PermissionError:
pass
def subcommand_list_exports(arguments):