File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -922,7 +922,7 @@ def execute_command_in_dir_with_realtime_output(
922
922
raise e
923
923
924
924
if not p .returncode == 0 :
925
- logger .critical (
925
+ logger .error (
926
926
"*** Problem running command (return code: %s): [%s]"
927
927
% (p .returncode , command )
928
928
)
@@ -993,14 +993,14 @@ def execute_command_in_dir(
993
993
return return_string .decode ("utf-8" )
994
994
995
995
except subprocess .CalledProcessError as e :
996
- logger .critical ("*** Problem running last command: %s" % e )
996
+ logger .error ("*** Problem running last command: %s" % e )
997
997
998
998
print ("####################################################################" )
999
999
print ("%s%s" % (prefix , e .output .decode ().replace ("\n " , "\n " + prefix )))
1000
1000
print ("####################################################################" )
1001
1001
return (e .returncode , e .output .decode ())
1002
1002
except Exception as e :
1003
- logger .critical ("*** Unknown problem running command: %s" % e )
1003
+ logger .error ("*** Unknown problem running command: %s" % e )
1004
1004
return (- 1 , str (e ))
1005
1005
1006
1006
Original file line number Diff line number Diff line change @@ -36,10 +36,13 @@ def __jnmlwrapper():
36
36
report_jnml_output = False ,
37
37
output_prefix = "" ,
38
38
return_string = True ,
39
- exit_on_fail = True ,
39
+ exit_on_fail = False ,
40
40
)
41
41
42
42
# if command ran successfully, print the output
43
43
# if it didn't, `run_jneuroml` will throw a critical error
44
44
if retstat is True :
45
45
print (output )
46
+ sys .exit (0 )
47
+ else :
48
+ sys .exit (1 )
You can’t perform that action at this time.
0 commit comments