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
ef3a8c0e
Commit
ef3a8c0e
authored
Jul 07, 2020
by
Maxime Perrotin
Browse files
Fix minor bugs
parent
fce994a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/genericSymbols.py
View file @
ef3a8c0e
...
...
@@ -344,7 +344,7 @@ class Symbol(QObject, QGraphicsPathItem):
LOG
.
debug
(
str
(
traceback
.
format_exc
()))
LOG
.
error
(
'Checker failed - no parser for this construct?'
)
else
:
if
check_last_semi
:
if
check_last_semi
and
str
(
self
).
strip
()
:
if
str
(
self
).
strip
()[
-
1
]
==
';'
:
syntax_errors
.
append
(
"Remove the semi-colon at the end"
" of the text."
)
...
...
opengeode/ogParser.py
View file @
ef3a8c0e
...
...
@@ -930,8 +930,8 @@ def check_type_compatibility(primary, type_ref, context):
Possibly returns a list of warnings; can raises TypeError
'''
warnings
=
[]
# function returns a list of warnings
assert
type_ref
is
not
None
if
type_ref
is
UNKNOWN_TYPE
:
#
assert type_ref is not None
if
type_ref
is
UNKNOWN_TYPE
or
type_ref
is
None
:
#print traceback.print_stack()
raise
TypeError
(
'Type reference is unknown'
)
...
...
@@ -2205,6 +2205,8 @@ def primary_call(root, context):
errors
.
append
(
error
(
root
,
str
(
err
)))
except
OverflowError
:
errors
.
append
(
error
(
root
,
'Result can exceeds 64-bits'
))
except
Warning
as
warn
:
warnings
.
append
(
warning
(
root
,
str
(
warn
)))
return
node
,
errors
,
warnings
...
...
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