Skip to content

Commit 9c09925

Browse files
committed
#643 fix: Fix wrong numb. of parameter for getJSONError
1 parent cc29424 commit 9c09925

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)