spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Fix datapackage reading crashing the whole import process #272

Closed soininen closed 10 months ago

soininen commented 10 months ago

Fixes spine-tools/Spine-Toolbox#2284

Checklist before merging

codecov-commenter commented 10 months ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05% :tada:

Comparison is base (3f0be54) 76.34% compared to head (b702c02) 76.40%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.8-dev #272 +/- ## =========================================== + Coverage 76.34% 76.40% +0.05% =========================================== Files 73 73 Lines 8819 8827 +8 Branches 1863 1863 =========================================== + Hits 6733 6744 +11 + Misses 1758 1755 -3 Partials 328 328 ``` | [Files Changed](https://app.codecov.io/gh/spine-tools/Spine-Database-API/pull/272?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spine-tools) | Coverage Δ | | |---|---|---| | [spinedb\_api/exception.py](https://app.codecov.io/gh/spine-tools/Spine-Database-API/pull/272?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spine-tools#diff-c3BpbmVkYl9hcGkvZXhjZXB0aW9uLnB5) | `66.66% <100.00%> (+0.75%)` | :arrow_up: | | [...inedb\_api/spine\_io/importers/datapackage\_reader.py](https://app.codecov.io/gh/spine-tools/Spine-Database-API/pull/272?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spine-tools#diff-c3BpbmVkYl9hcGkvc3BpbmVfaW8vaW1wb3J0ZXJzL2RhdGFwYWNrYWdlX3JlYWRlci5weQ==) | `66.66% <100.00%> (+3.70%)` | :arrow_up: | | [spinedb\_api/spine\_io/importers/reader.py](https://app.codecov.io/gh/spine-tools/Spine-Database-API/pull/272?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spine-tools#diff-c3BpbmVkYl9hcGkvc3BpbmVfaW8vaW1wb3J0ZXJzL3JlYWRlci5weQ==) | `86.44% <100.00%> (+5.40%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.