FFC

The syntax "raise Exception, 'message'" is ambiguous and deprecated, change existing use and stop adding more of it

Registered by Martin Sandve Alnæs on 2013-01-03

Lines such as this:

                raise Exception, msg

should be like this:

                raise Exception(msg)

Blueprint information

Status:
Not started
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Assigning me? I'm not going to police everybodys code :)

The main point here is that everyone needs to notice this and stop doing it again and again.

I actually did go through a lot of places (at least in dolfin) quite some time ago, but several developers have missed this and keep adding more.

This is part of the python 3 support:
https://blueprints.launchpad.net/dolfin/+spec/python3-interface

MER: Assign away at will ;-) But, if it is part of the bigger scheme, should/could it be a FEniCS blueprint (not an FFC one)? MSA: Yes, I tried associating it with dolfin as well, not sure how well that works out.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.