From a41e66cc2d2252bdfefdbde17c64b60021ca98c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20Sch=C3=A4fer?=
 <pschaefer@ITA.AKUSTIK.RWTH-AACHEN.DE>
Date: Tue, 21 Mar 2023 15:03:20 +0100
Subject: [PATCH] LauncherScript: now does not stop if invalid reproduction ID
 is specified

---
 LaunchScript/VirtualAcousticsStarterServer.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/LaunchScript/VirtualAcousticsStarterServer.py b/LaunchScript/VirtualAcousticsStarterServer.py
index 24a84c2..68d4158 100644
--- a/LaunchScript/VirtualAcousticsStarterServer.py
+++ b/LaunchScript/VirtualAcousticsStarterServer.py
@@ -144,7 +144,8 @@ class VAComposedIniParser:
       sSection = "Reproduction:" + sReproductionID
       if not reproductionIni.has_section(sSection):
         print( "ERROR: Reproduction module with ID: '" + sReproductionID  + "' not available in respective ini file '" + sFileToRead + "'")
-        sys.exit( ErrorCodes.ERROR_INVALID_REPRODUCTION_ID )
+        #sys.exit( ErrorCodes.ERROR_INVALID_REPRODUCTION_ID )
+        return False
       reproductionIni[sSection]["Enabled"] = "True"
     
     with open( sFileToWrite, 'w' ) as inifile:
-- 
GitLab