Skip to content

Commit

Permalink
Don't print the __version__ in the exception messages, as there is no…
Browse files Browse the repository at this point in the history
…ne set
  • Loading branch information
Caspar van Leeuwen committed Sep 24, 2024
1 parent cd318c9 commit 5dc180d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eessi/testsuite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
msg = "fallback_version not found in file %s" % pyproject_toml
msg += " when trying the get the EESSI test suite version. This should never happen."
msg += " Please report an issue on Github, including information on how you installed"
msg += " the EESSI test suite. Defaulting to version %s." % __version__
msg += " the EESSI test suite."
print(msg)
except FileNotFoundError:
msg = "File %s not found when trying to extract the EESSI test suite version from" % pyproject_toml
msg += " pyproject.toml. This should never happen. Please report an issue on GitHub, including information on how you"
msg += " installed the EESSI test suite. Defaulting to version %s." % __version__
msg += " installed the EESSI test suite."
print(msg)
except Exception as e:
print("When trying to open file %s, an exception was raised: %s." % (pyproject_toml, e))
Expand Down

0 comments on commit 5dc180d

Please sign in to comment.