From f2940d3f2343536cefa38031db55e16f62780d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Kr=C3=BCger?= Date: Tue, 23 Jul 2024 18:15:48 +0200 Subject: [PATCH] SINQ/SEA: Fix import error due to None value If the environment variable isn't set a None value is returned. Now an empty string will be returned Fixes: #4882 Change-Id: I3e319daebf10e2d8ea3ee00f6094e6896e54f51b Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34234 Tested-by: Jenkins Automated Tests Reviewed-by: Markus Zolliker Reviewed-by: Jens Krueger --- frappy_psi/sea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappy_psi/sea.py b/frappy_psi/sea.py index d77d84d..f68f7f4 100644 --- a/frappy_psi/sea.py +++ b/frappy_psi/sea.py @@ -74,7 +74,7 @@ SERVICE_NAMES = { SEA_DIR = expanduser('~/sea') seaconfdir = os.environ.get('FRAPPY_SEA_DIR') -if not exists(seaconfdir): +if seaconfdir is None or not exists(seaconfdir): for confdir in generalConfig.confdir.split(os.pathsep): seaconfdir = join(confdir, 'sea') if exists(seaconfdir):