From 790ea004a54b6206c6a5400baee432b9ff6d7733 Mon Sep 17 00:00:00 2001
From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de>
Date: Thu, 8 Jun 2023 12:15:45 +0200
Subject: [PATCH] return none for wrong action

---
 mpsd-software-environment.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mpsd-software-environment.py b/mpsd-software-environment.py
index 7925e7b..c208654 100755
--- a/mpsd-software-environment.py
+++ b/mpsd-software-environment.py
@@ -94,6 +94,8 @@ def create_log_file_names(
         # if toolchain is given, then  we build the build_log_file_name
         if action in ["install", "remove"]:
             log_template = config_vars["build_log_template"]
+        else:
+            return None
     else:
         # if toolchain is not given, then we build the installer_log_file_name
         log_template = config_vars["installer_log_template"]
-- 
GitLab