Skip to content

Commit 1f4d4c8

Browse files
committed
attempt to fix error message
1 parent 1352df2 commit 1f4d4c8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@
2727
from matplotlib.figure import Figure
2828
import neuron
2929
from shutil import copyfile
30-
from jupyter_geppetto import jupyter_geppetto, synchronization
30+
from jupyter_geppetto import jupyter_geppetto, synchronization, utils
3131
import imp
3232
from contextlib import redirect_stdout, redirect_stderr
33-
from jupyter_geppetto import utils
3433

3534

3635
class NetPyNEGeppetto():
@@ -61,8 +60,8 @@ def instantiateNetPyNEModelInGeppetto(self, args):
6160
self.geppetto_model = self.model_interpreter.getGeppettoModel(netpyne_model)
6261

6362
return json.loads(GeppettoModelSerializer().serialize(self.geppetto_model))
64-
except:
65-
return utils.getJSONError("Error while instantiating the NetPyNE model",traceback.format_exc())
63+
except Exception as e:
64+
return utils.getJSONError("Error while instantiating the NetPyNE model", e)
6665

6766
def simulateNetPyNEModelInGeppetto(self, args):
6867
try:

0 commit comments

Comments
 (0)