Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
source
OBSW MOD GENERATOR CORE
Commits
8016ac97
Unverified
Commit
8016ac97
authored
May 17, 2021
by
Robin Mueller
Browse files
printint key errors now
parent
236aaf71
Changes
1
Hide whitespace changes
Inline
Side-by-side
events/event_parser.py
View file @
8016ac97
...
...
@@ -70,8 +70,11 @@ class EventParser(FileParser):
if
subsystem_id_assignment_match
:
# For now, it is assumed that there is only going to be one subsystem ID per class / source file
# if "SUBSYSTEM_ID" in subsystem_id_assignment_match.group(1):
self
.
current_id
=
self
.
interfaces
[
subsystem_id_assignment_match
.
group
(
2
)][
0
]
self
.
my_id
=
self
.
return_number_from_string
(
self
.
current_id
)
try
:
self
.
current_id
=
self
.
interfaces
[
subsystem_id_assignment_match
.
group
(
2
)][
0
]
self
.
my_id
=
self
.
return_number_from_string
(
self
.
current_id
)
except
KeyError
as
e
:
print
(
f
"Key not found:
{
e
}
"
)
# Now try to look for event definitions. Moving windows allows multi line event definitions
# These two variants need to be checked
...
...
Write
Preview
Markdown
is supported
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