Skip to content

Commit e53b82d

Browse files
committed
fix access to env variable
1 parent 2abd639 commit e53b82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def execute(self):
10221022
# a bit ALICEO2+O2DPG specific but for now a convenient place to
10231023
# restore original behaviour of ALICEO2_CCDB_LOCALCACHE semantics
10241024
# TODO: introduce a proper workflow-globalinit section which is defined inside the workflow json
1025-
if os.environ['ALICEO2_CCDB_LOCALCACHE'] != None:
1025+
if os.environ.get('ALICEO2_CCDB_LOCALCACHE') != None:
10261026
os.environ['IGNORE_VALIDITYCHECK_OF_CCDB_LOCALCACHE'] = "ON"
10271027

10281028
errorencountered = False

0 commit comments

Comments
 (0)