Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
e6632bff
Commit
e6632bff
authored
Oct 22, 2014
by
Maxime Perrotin
Browse files
Fix exception on type check
parent
89c69c27
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogParser.py
View file @
e6632bff
...
...
@@ -3223,7 +3223,9 @@ def decision(root, parent, context):
# numeric type -> find the range covered by this answer
a0_basic
=
find_basic_type
(
ans
.
closedRange
[
0
].
exprType
)
a1_basic
=
find_basic_type
(
ans
.
closedRange
[
1
].
exprType
)
if
a0_basic
.
Min
!=
a0_basic
.
Max
or
a1_basic
.
Min
!=
a1_basic
.
Max
:
if
not
hasattr
(
a0_basic
,
"Min"
)
or
not
hasattr
(
a1_basic
,
"Min"
)
\
or
a0_basic
.
Min
!=
a0_basic
.
Max
\
or
a1_basic
.
Min
!=
a1_basic
.
Max
:
# Not a constant or a raw number, range is not fix
need_else
=
True
continue
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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