bugfix: return correct error code when catching exception!
This commit is contained in:
@ -1666,8 +1666,10 @@ class ZfsAutobackup:
|
|||||||
self.error("Exception: "+str(e))
|
self.error("Exception: "+str(e))
|
||||||
if self.args.debug:
|
if self.args.debug:
|
||||||
raise
|
raise
|
||||||
|
return(255)
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
self.error("Aborted")
|
self.error("Aborted")
|
||||||
|
return(255)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user