File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,17 +305,17 @@ def simulateNetPyNEModelInGeppetto(self, args):
305305 return self .simulate_single_model (experiment , use_prev_inst )
306306 except Exception :
307307 experiment .state = model .ExperimentState .ERROR
308- message = ( "Unknown error during simulation of Experiment. SimulationId %i" % sim_id )
308+ message = f "Unknown error during simulation of Experiment. SimulationId { sim_id } "
309309 logging .exception (message )
310- return utils .getJSONError ("Unknown error during simulation of Experiment" , sys .exc_info (), { "sim_id" : sim_id })
310+ # return utils.getJSONError("Unknown error during simulation of Experiment", sys.exc_info(), { "sim_id": sim_id})
311+ return utils .getJSONError ("Unknown error during simulation of Experiment" , sys .exc_info ())
311312
312313 else :
313314 return self .simulate_single_model (use_prev_inst = use_prev_inst )
314315
315316 except Exception as e :
316- message = ( "Error while simulating the NetPyNE model: %s . SimulationId %f" % ( e , sim_id ))
317+ message = f "Error while simulating the NetPyNE model: { e } . SimulationId { sim_id } "
317318 logging .exception (message )
318- # return utils.getJSONError(message, sys.exc_info(), { "sim_id": sim_id})
319319 return utils .getJSONError (message , sys .exc_info ())
320320
321321 def _prepare_simulation_files (self , experiment : model .Experiment = None , use_prev_inst : bool = False ) -> str :
You can’t perform that action at this time.
0 commit comments