Skip to content
Snippets Groups Projects
Commit b3613dc6 authored by Marcel Koch's avatar Marcel Koch
Browse files

Removes bug in compile exception

parent 4fdac04a
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ def read_ufl(uflfile):
for k, v in ini.get("formcompiler.ufl_variants", {}).items():
pycode = pycode + "{} = {}\n".format(k, repr(type_guessing(v)))
pycode = pycode + uflcode
with file(pyname, "w") as f:
with open(pyname, "w") as f:
f.write(pycode)
raise SyntaxError("Not a valid ufl file, dumped a debug script: {}".format(pyname))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment