Skip to content

Commit

Permalink
simplify error message in unique_ordered_append
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Grund <[email protected]>
  • Loading branch information
lexming and Flamefire authored Oct 2, 2024
1 parent d03ff29 commit ce18c9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions easybuild/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ def unique_ordered_append(base, extra):
except TypeError as err:
raise EasyBuildError( f"given extra list is not iterable: {extra}") from err
except AttributeError as err:
err_msg = f"_unique_ordered_list_append: given base cannot be extended: {base}"
raise EasyBuildError(err_msg) from err
raise EasyBuildError(f"given base cannot be extended: {base}") from err
else:
base = nub(base) # remove duplicates

Expand Down

0 comments on commit ce18c9e

Please sign in to comment.