Fix NonVirtualInHierarchyError message format (#26008)

This commit is contained in:
Dylan Simon 2021-10-04 04:38:09 -04:00 committed by GitHub
parent 205b414162
commit 9926799aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ def hierarchy_tokens(self):
if not_virtual:
msg = "Non-virtual specs in 'hierarchy' list for lmod: {0}\n"
msg += "Please check the 'modules.yaml' configuration files"
msg.format(', '.join(not_virtual))
msg = msg.format(', '.join(not_virtual))
raise NonVirtualInHierarchyError(msg)
# Append 'compiler' which is always implied