TNO Intern

Commit 957a65a0 authored by Arjo Segers's avatar Arjo Segers
Browse files

Trap multiple selections from inquire table as problematic.

parent 2df16856
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -70,6 +70,10 @@
# 2025-04, Arjo Segers
#   Changed imports for python packaging.
#
# 2025-09, Arjo Segers
#   Trap multiple selections from inquire table as this might indicate
#   a problem in the table or the selection.
#


########################################################################
@@ -2863,6 +2867,11 @@ class CSO_S5p_Convert(utopya.UtopyaRc):
            # no orbit found? next:
            if len(odf) == 0:
                continue
            elif len(odf) > 1:
                logging.error(f"found {len(odf)} records matching selection;" +
                    " use finer selection, or something wrong in inquiry table?" )
                raise Exception
            #endif
            # selected record:
            rec = odf.GetRecord(0)