From 2e326361cd1338686f9b1d24ffbb3dd47f54f500 Mon Sep 17 00:00:00 2001 From: Rudolph Pienaar Date: Wed, 8 May 2024 17:51:43 -0600 Subject: [PATCH] Bump version to 1.2.50 with print_config() catching --- spleenseg/spleenseg.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/spleenseg/spleenseg.py b/spleenseg/spleenseg.py index 903d1ab..678a5c2 100644 --- a/spleenseg/spleenseg.py +++ b/spleenseg/spleenseg.py @@ -46,7 +46,7 @@ ╚══════╝╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═══╝╚══════╝╚══════╝ ╚═════╝ """ -__version__ = "1.2.48" +__version__ = "1.2.50" import spleenseg.splparser as spl description: str = """ @@ -112,8 +112,12 @@ def envDetail_print(options: Namespace, **kwargs): print(DISPLAY_TITLE) f = Figlet(font="doom") print(f.renderText(f"{options.mode}")) - print(f"Device = {options.device}") - print_config() + print(f"\nversion: {__version__}") + print(f"Device: {options.device}") + try: + print_config() + except Exception as e: + print("While printing some env info, some exception occurred. Ignoring...") def env_outputDirsMake(options: Namespace) -> None: