← Back to team overview

dolfin team mailing list archive

Raising exceptions in python

 

There's a lot of
    raise ExceptionType, "message"
in pydolfin. This is not recommended style, and I think it
will be a problem in the (distant?) future when converting
to python 3. For now it's not a problem, but keep it in mind
to always do
    raise ExceptionType("message")
in new code and fix this in other code over time.

Martin


Follow ups