From daff5dfc697fc9549417e8f63c04fad2648d7808 Mon Sep 17 00:00:00 2001 From: Daniel Berge Sollien Date: Tue, 19 Sep 2023 12:35:54 +0200 Subject: [PATCH] Capture ValueError Compdat with complump raises this error --- src/fmu/sumo/utilities/sim2sumo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fmu/sumo/utilities/sim2sumo.py b/src/fmu/sumo/utilities/sim2sumo.py index dfd3f7be..58cca9f0 100644 --- a/src/fmu/sumo/utilities/sim2sumo.py +++ b/src/fmu/sumo/utilities/sim2sumo.py @@ -163,6 +163,9 @@ def get_results( trace = sys.exc_info()[1] except FileNotFoundError: trace = sys.exc_info()[1] + except ValueError: + trace = sys.exc_info()[1] + if trace is not None: logger.warning( "Trace: %s, \nNo results produced ",