Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
9e2cc2b5
Commit
9e2cc2b5
authored
Dec 22, 2019
by
VIGNET Pierre
Browse files
[lib] CLUnfolder: fix exception handling when text properties/events have a bad syntax
parent
0640273a
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
View file @
9e2cc2b5
...
...
@@ -1133,6 +1133,12 @@ class CLUnfolder(object):
self
.
dynamic_system
.
symb_tab
,
self
.
dynamic_system
.
report
)
if
tree_prop
is
None
:
raise
MCLException
(
"error during parsing of '%s', please check the property syntax"
%
property_text
)
# Avoid name collisions of aux var
prop_visitor
=
CLPropertyVisitor
(
self
.
__lit_cpt
)
tree_prop
.
accept
(
prop_visitor
)
...
...
@@ -1165,6 +1171,12 @@ class CLUnfolder(object):
True
,
# Collect free clocks (events)
self
.
dynamic_system
.
report
)
if
tree_prop
is
None
:
raise
MCLException
(
"error during parsing of '%s', please check the event syntax"
%
property_text
)
# Avoid name collisions of aux var
prop_visitor
=
CLPropertyVisitor
(
self
.
__lit_cpt
)
tree_prop
.
accept
(
prop_visitor
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment