Skip to content

Fix crash when 'resultTime' is missing in components#177

Open
Prinxeeee wants to merge 1 commit into
istSOS:mainfrom
Prinxeeee:fix-resulttime-index-crash
Open

Fix crash when 'resultTime' is missing in components#177
Prinxeeee wants to merge 1 commit into
istSOS:mainfrom
Prinxeeee:fix-resulttime-index-crash

Conversation

@Prinxeeee
Copy link
Copy Markdown
Contributor

Fixes a crash in insertBulkObservation when resultTime is not present in components.

The previous implementation called components.index("resultTime") without checking for its existence first.
list.index() raises a ValueError if the item is not found (it does not return -1).
Fixed by replacing with if "resultTime" in components before calling .index().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant