From ce772dc188eb5875c0653df03a0dd27a6220be1d Mon Sep 17 00:00:00 2001 From: Daniel Scheffler Date: Wed, 25 Nov 2020 23:05:13 +0100 Subject: [PATCH] Fixed exception while closing AtmCorr.logger. Signed-off-by: Daniel Scheffler --- HISTORY.rst | 1 + gms_preprocessing/algorithms/L1C_P.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 55515f6..6b5c432 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -8,6 +8,7 @@ History * Fixed missing log messages regarding released locks. * Fixed issue #103 ('struct.error: unpack requires a buffer of 4 bytes' within SpatialIndexMediator in case of various parallel database accesses) by adding a database lock that blocks parallel database queries. +* Fixed exception while closing AtmCorr.logger. 0.18.11 (2020-11-03) diff --git a/gms_preprocessing/algorithms/L1C_P.py b/gms_preprocessing/algorithms/L1C_P.py index ba7b8a7..20277c0 100644 --- a/gms_preprocessing/algorithms/L1C_P.py +++ b/gms_preprocessing/algorithms/L1C_P.py @@ -929,7 +929,8 @@ class AtmCorr(object): finally: # rs_image.logger must be closed properly in any case - rs_image.logger.close() + if rs_image.logger is not None: + rs_image.logger.close() # get processing infos self.proc_info = self.ac_input['options']['processing'] -- GitLab