Skip to content

Commit 0409300

Browse files
committed
if versionsuffix is explicitly set to None, it crashes below
1 parent e9e8532 commit 0409300

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

easybuild/framework/easyconfig/tweak.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,9 @@ def find_potential_version_mappings(dep, toolchain_mapping, versionsuffix_mappin
10891089

10901090
# Figure out the main versionsuffix (altered depending on toolchain in the loop below)
10911091
versionsuffix = dep.get('versionsuffix', '')
1092+
# If versionsuffix is equal to None, it should be put to empty string
1093+
if not versionsuffix:
1094+
versionsuffix = ''
10921095
# If versionsuffix is in our mapping then we expect it to be updated
10931096
if versionsuffix in versionsuffix_mapping:
10941097
versionsuffix = versionsuffix_mapping[versionsuffix]

0 commit comments

Comments
 (0)