From ea8c5bd982afd524bef5b33343bd4413f9bcc807 Mon Sep 17 00:00:00 2001 From: felmer <franz-josef.elmer@id.ethz.ch> Date: Thu, 15 Jun 2023 09:42:36 +0200 Subject: [PATCH] SSDM-13489: Throw exception in case of unspecified ELN Settings --- .../eln-lims/1/dss/file-system-plugins/eln-tree/script.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py index f10f9868a26..364ceab6f31 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py @@ -121,6 +121,8 @@ class Acceptor(object): class Settings(object): def __init__(self, inventorySpaces, mainMenues, sampleTypeViewAttributes): + if len(mainMenues) == 0: + raise NoSuchFileException("No main menues defined because ELN Settings are yet specified.") self.inventorySpaces = inventorySpaces self.mainMenues = mainMenues self.sampleTypeViewAttributes = sampleTypeViewAttributes -- GitLab