# HG changeset patch # User Bernhard Herzog # Date 1259765197 0 # Node ID 26c15a0f0e52d362fbc9615252324b6cb5a2a70e # Parent 3749b8285b93994b6f1ab4b2681b04edb1b61b39 When stopping because of an error, do not raise the exception again as it leads to confusing double tracebacks in the log. Instead, simply log the reason for the stopping and stop in the same way a stop instruction is handled. diff -r 3749b8285b93 -r 26c15a0f0e52 treepkg/packager.py --- a/treepkg/packager.py Tue Dec 01 18:54:34 2009 +0000 +++ b/treepkg/packager.py Wed Dec 02 14:46:37 2009 +0000 @@ -659,7 +659,8 @@ logging.exception("An error occurred while" " checking packager track %r", track.name) if self.stop_on_error: - raise + logging.info("Stopping because of errors.") + return True if self.should_stop(): logging.info("Received stop instruction. Stopping.") return True