bugfix: return correct error code when catching exception!

This commit is contained in:
Edwin Eefting 2020-04-16 16:37:06 +02:00
parent b51eefa139
commit a6b688c976

View File

@ -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__":