From edcf4a56196675effb3ae66736e63ccbf8e4139a Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 22 Oct 2018 18:19:02 -0400 Subject: [PATCH] backups: Handle permission error during chown This happens on FAT file systems, where chown operation is not possible. Signed-off-by: James Valleroy --- actions/backups | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actions/backups b/actions/backups index e3af4dca0..788995f08 100755 --- a/actions/backups +++ b/actions/backups @@ -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):