From 55b1fc5e71d3e1841a7b84044590c0c621c977b5 Mon Sep 17 00:00:00 2001 From: brent s Date: Wed, 5 Jun 2019 22:10:08 -0400 Subject: [PATCH] skip over nonexisting paths --- backup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.py b/backup.py index ec90e34..a84d07f 100755 --- a/backup.py +++ b/backup.py @@ -306,7 +306,8 @@ class Backup(object): repo['name'], self.args['archive'])) for p in repo['path']: - _cmd.append(p) + if os.path.exists(p): + _cmd.append(p) self.logger.debug('VARS: {0}'.format(vars())) # We don't use self.cmdExec() here because we want to explicitly # pass the env and format the log line differently.