From 88e017488d0d1875029b1d349cbe456d3ad3fe89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 8 Dec 2010 22:26:07 -0500 Subject: [PATCH] use sysexec_noerr for error handling --- source/BootManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/BootManager.py b/source/BootManager.py index 9ed03ed..29497fe 100755 --- a/source/BootManager.py +++ b/source/BootManager.py @@ -149,7 +149,7 @@ class log: # NOTE: for code-reuse, evoke the bash function 'upload_logs'; # by adding --login, bash reads .bash_profile before execution. # Also, never fail, since this is an optional feature. - utils.sysexec( """bash --login -c "upload_logs %s || /bin/true" """ % extra_file, self) + utils.sysexec_noerr( """bash --login -c "upload_logs %s" """ % extra_file, self) ############################## @@ -369,7 +369,7 @@ def main(argv): LOG= log( BM_NODE_LOG ) # NOTE: assume CWD is BM's source directory, but never fail - utils.sysexec("./setup_bash_history_scripts.sh || /bin/true", LOG) + utils.sysexec_noerr("./setup_bash_history_scripts.sh", LOG) LOG.LogEntry( "BootManager started at: %s" % \ time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()) ) -- 2.43.0