Skip to content

Commit a347fb1

Browse files
committed
Fix dumb mistake -- used 'not' where I wanted to catch error, not exclude it. Why did Python 3.6.6 not fail?
1 parent b67a669 commit a347fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/framework/easyconfig/easyconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def update(self, key, value, allow_duplicate=True):
587587
raise EasyBuildError(msg, key, value)
588588

589589
# For dictionaries, input value cannot be a string; must be iterable
590-
if isinstance(self[key], dict) and not isinstance(value, string_type):
590+
if isinstance(self[key], dict) and isinstance(value, string_type):
591591
msg = "Can't update configuration value for %s, because the attempted"
592592
msg += "update value, '%s', is not iterable (list, tuple, dict)."
593593
raise EasyBuildError(msg, key, value)

0 commit comments

Comments
 (0)