Minor bug: uncaught python error condition

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
lcampagn
Posts: 22
Joined: Mon Jul 07, 2014 1:12 pm

Minor bug: uncaught python error condition

Post by lcampagn » Thu Oct 23, 2014 2:43 pm

Example:

Code: Select all

>>> h.same(1, 2)
False
>>> h.fadvance()
TypeError: function takes exactly 1 argument (2 given)
It appears the first statement generated a python error, but the exception was not raised until the error check in the following statement.

hines
Site Admin
Posts: 1575
Joined: Wed May 18, 2005 3:32 pm

Re: Minor bug: uncaught python error condition

Post by hines » Fri Oct 24, 2014 1:43 am

Thanks. The fix is in http://www.neuron.yale.edu/hg/neuron/nr ... 255dcb7c6a
I will merge it to the trunk after dealing with the other error you mentioned.

Post Reply