1
0
mirror of https://github.com/franjsco/rsync-linux-home synced 2025-01-03 10:30:26 +01:00

Fix #1: exit status code doesn't work

This commit is contained in:
Francesco Esposito 2019-04-13 12:22:55 +02:00
parent 4e5149e58c
commit 6c56165846

View File

@ -95,10 +95,12 @@ def execute_backup(cmd):
print("> Backup Aborted")
print('Error rsync')
print("Exit code: {}".format(sperror.args[0]))
exit(sperror.args[0])
except Exception as exception:
print("> Backup Aborted")
print('Error')
print(exception)
exit(1)