Skip to content

Commit

Permalink
Revert session info change
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Dec 18, 2023
1 parent 333b168 commit d05bcc2
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions ehrapy/core/meta_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,19 @@ def print_versions(): # pragma: no cover
>>> import ehrapy as ep
>>> ep.print_versions()
"""
try:
session_info.show(
dependencies=True,
html=False,
excludes=[
"builtins",
"stdlib_list",
"importlib_metadata",
"jupyter_core"
# Special module present if test coverage being calculated
# https://gitlab.com/joelostblom/session_info/-/issues/10
"$coverage",
],
)
except AttributeError:
# Not raising an error due to https://gitlab.com/joelostblom/session_info/-/issues/14
print("[bold yellow]Unable to get the version for one or more packages.")
session_info.show(
dependencies=True,
html=False,
excludes=[
"builtins",
"stdlib_list",
"importlib_metadata",
"jupyter_core"
# Special module present if test coverage being calculated
# https://gitlab.com/joelostblom/session_info/-/issues/10
"$coverage",
],
)


def print_version_and_date(*, file=None): # pragma: no cover
Expand Down

0 comments on commit d05bcc2

Please sign in to comment.