Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
l2json
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David McKenna
l2json
Commits
267ef735
Commit
267ef735
authored
1 month ago
by
David McKenna
Browse files
Options
Downloads
Patches
Plain Diff
REVERT: Continue to raise errors for missing static keys
parent
a05ab1d1
No related branches found
No related tags found
1 merge request
!38
FIX: Pass on invalid station configurations instead of exiting.
Pipeline
#121306
passed
1 month ago
Stage: prepare
Stage: test
Stage: package
Pipeline: l2json
#121307
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
l2json/parsers/parse_json.py
+1
-1
1 addition, 1 deletion
l2json/parsers/parse_json.py
with
1 addition
and
1 deletion
l2json/parsers/parse_json.py
+
1
−
1
View file @
267ef735
...
@@ -103,7 +103,7 @@ def get_last_valid_device_value(
...
@@ -103,7 +103,7 @@ def get_last_valid_device_value(
value
=
get_value_from_metadata
(
metadata
,
antennafield
,
output_key
,
device_mapping
)
value
=
get_value_from_metadata
(
metadata
,
antennafield
,
output_key
,
device_mapping
)
if
value
is
not
None
:
if
value
is
not
None
:
return
value
return
value
print
(
f
"
No value found for
{
output_key
=
}
in provided metadata dicts.
"
)
raise
KeyError
(
f
"
No value found for
{
output_key
=
}
in provided metadata dicts.
"
)
# def get_static_metadata(filtered_metadata: list[dict[str, Any]], antennafield: str, keys: set[str]) -> dict[str, str]:
# def get_static_metadata(filtered_metadata: list[dict[str, Any]], antennafield: str, keys: set[str]) -> dict[str, str]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment