Skip to content
Snippets Groups Projects
Commit 92f145fa authored by Martin Lange's avatar Martin Lange
Browse files

move getting data out of error logging

parent ef6feabb
No related branches found
No related tags found
1 merge request!257Fix error logging for no data in static input
Pipeline #158716 passed with stages
in 4 minutes and 53 seconds
# Release notes
## [unpublished]
### Bug fixes
* No more logging of expected `FinamNoDataError` in inputs during the connect phase (!257)
## [v0.4.0]
### New scheduling algorithm
......@@ -170,6 +176,7 @@
* initial release of FINAM
[unpublished]: https://git.ufz.de/FINAM/finam/-/compare/v0.4.0...main
[v0.4.0]: https://git.ufz.de/FINAM/finam/-/compare/v0.4.0-rc.2...v0.4.0
[v0.4.0-rc.2]: https://git.ufz.de/FINAM/finam/-/compare/v0.4.0-rc.1...v0.4.0-rc.2
[v0.4.0-rc.1]: https://git.ufz.de/FINAM/finam/-/compare/v0.3.0...v0.4.0-rc.1
......
......@@ -121,10 +121,9 @@ class Input(IInput, Loggable):
if self.is_static:
if self._cached_data is None:
data = self.source.get_data(time, target or self)
with ErrorLogger(self.logger):
data = self.source.get_data(time, target or self)
self._cached_data = self._convert_and_check(data)
data = self._cached_data
else:
data = self.source.get_data(time, target or self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment