mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-06 15:22:25 +02:00
fixed run processes for log files
This commit is contained in:
@@ -214,7 +214,6 @@ def runProcess(name, cmd, fp, log_file_name = None, quiet_mode=False):
|
||||
|
||||
except subprocess.CalledProcessError as e:
|
||||
print("error: ", str(e))
|
||||
captured_log = e.stdout.splitlines()
|
||||
pass
|
||||
except Exception as e:
|
||||
print("something else failed")
|
||||
@@ -225,6 +224,7 @@ def runProcess(name, cmd, fp, log_file_name = None, quiet_mode=False):
|
||||
with optional_file(log_file_name, 'r') as log_fp:
|
||||
checkLogForErrorsOrSummary(fp, log_fp, log_file_name)
|
||||
else:
|
||||
captured_log = e.stdout.splitlines()
|
||||
checkLogForErrorsOrSummary(fp, captured_log)
|
||||
|
||||
Log(LogLevel.INFOGREEN, name + ' successful!\n', fp, True)
|
||||
|
||||
Reference in New Issue
Block a user