diff --git a/easybuild/easyblocks/p/python.py b/easybuild/easyblocks/p/python.py index 594143b06e0..32b69db001c 100644 --- a/easybuild/easyblocks/p/python.py +++ b/easybuild/easyblocks/p/python.py @@ -394,7 +394,7 @@ def _inject_patch_ctypes_ld_library_path(self): else: msg = "The length of 'checksums' (%s) is not equal to the total amount of sources (%s) + patches (%s). " msg += "Did you forget to add a checksum for patch_ctypes_ld_library_path?" - raise EasyBuildError(msg, len(checksums), len(sources), len(len_patches + 1)) + raise EasyBuildError(msg, len(checksums), len(sources), len_patches + 1) # If LD_LIBRARY_PATH is filtered, but no patch is specified, warn the user that his may not work elif ( 'LD_LIBRARY_PATH' in filtered_env_vars and