Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
c12f1ed7
Commit
c12f1ed7
authored
Jan 15, 2015
by
Maxime Perrotin
Browse files
Relax range check - raise warning instead of error
parent
4159f3ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/ogParser.py
View file @
c12f1ed7
...
...
@@ -596,8 +596,8 @@ def check_range(typeref, type_to_check):
try
:
if
float
(
type_to_check
.
Min
)
<
float
(
typeref
.
Min
)
\
or
float
(
type_to_check
.
Max
)
>
float
(
typeref
.
Max
):
raise
TypeError
(
'Expression evaluation in range [{}..{}], '
'outside expected range [{}..{}]'
raise
Warning
(
'Expression evaluation in range [{}..{}], '
'outside expected range [{}..{}]'
.
format
(
type_to_check
.
Min
,
type_to_check
.
Max
,
typeref
.
Min
,
typeref
.
Max
))
except
(
AttributeError
,
ValueError
):
...
...
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