revisor/__init__.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f20ed2c36443c8ce27aff16ccbd10338eeceb111 Author: Jeroen van Meeuwen (Fedora Unity) <kana...@fedoraunity.org> Date: Mon Feb 23 19:15:10 2009 +0100 If a sys.exit() call says $? -gt 0 then exit with that same $? diff --git a/revisor/__init__.py.in b/revisor/__init__.py.in index 6585844..9415a37 100644 --- a/revisor/__init__.py.in +++ b/revisor/__init__.py.in @@ -497,8 +497,8 @@ class Revisor: try: self.base.run() - except SystemExit: - pass + except SystemExit, e: + exitcode = e except KeyboardInterrupt: exitcode = 1 self.base.log.info(_("Interrupted by user")) _______________________________________________ revisor-devel mailing list revisor-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/revisor-devel