[Treepkg-commits] r236 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Dec 2 15:46:37 CET 2009
Author: bh
Date: 2009-12-02 15:46:37 +0100 (Wed, 02 Dec 2009)
New Revision: 236
Modified:
trunk/treepkg/packager.py
Log:
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.
Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py 2009-12-01 18:54:34 UTC (rev 235)
+++ trunk/treepkg/packager.py 2009-12-02 14:46:37 UTC (rev 236)
@@ -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
More information about the Treepkg-commits
mailing list