From a6b688c9768312623a8d7f81a88643b08c9d9776 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Thu, 16 Apr 2020 16:37:06 +0200 Subject: [PATCH] bugfix: return correct error code when catching exception! --- bin/zfs-autobackup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/zfs-autobackup b/bin/zfs-autobackup index a73baef..e58334b 100755 --- a/bin/zfs-autobackup +++ b/bin/zfs-autobackup @@ -1666,8 +1666,10 @@ class ZfsAutobackup: self.error("Exception: "+str(e)) if self.args.debug: raise + return(255) except KeyboardInterrupt as e: self.error("Aborted") + return(255) if __name__ == "__main__":