From e41b3f5ab38f31e6ecb47293515e48fb42421409 Mon Sep 17 00:00:00 2001 From: brent s Date: Thu, 26 Oct 2017 06:16:03 -0400 Subject: [PATCH] gorram it --- storage/backups/borg/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/backups/borg/backup.py b/storage/backups/borg/backup.py index 742e17e..73487fa 100755 --- a/storage/backups/borg/backup.py +++ b/storage/backups/borg/backup.py @@ -201,7 +201,7 @@ class Backup(object): ' '.join(_cmd))) if _returncode != 0: self.logger.error('[{0}]: FAILED: {1}'.format(r, ' '.join(_cmd))) - if _err != '' and self.cron and _returncode != 0: + if _stderr != '' and self.cron and _returncode != 0: self.logger.warning('Command {0} failed: {1}'.format(' '.join(cmd), _err)) del(_env['BORG_PASSPHRASE']) self.logger.info('[{0}]: END BACKUP'.format(r))