FEniCS / ufl

UFL - Unified Form Language
https://fenicsproject.org
GNU Lesser General Public License v3.0
104 stars 64 forks source link

Use Python warnings and exceptions instead of custom logging #137

Closed mscroggs closed 1 year ago

mscroggs commented 1 year ago

~This requires https://github.com/FEniCS/dolfinx/pull/2490 and https://github.com/firedrakeproject/tsfc/pull/285~ (both merged now)

mscroggs commented 1 year ago

tsfc is importing GREEN from ufl.log, which this PR removes, so that will need updating

garth-wells commented 1 year ago

BaseException isn't very informative for a user. Is there a next step plan for exception types?

mscroggs commented 1 year ago

BaseException isn't very informative for a user. Is there a next step plan for exception types?

No, we should work on a plan