From e67820d33b1be9d9263243e29074f78c905e41a5 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Wed, 9 Aug 2023 09:24:18 -0500 Subject: [PATCH] fixes #10113 packaging.version.parse() will raise InvalidVersion in some cases but the error isn't caught. --- src/Mod/Path/Path/GuiInit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/Path/GuiInit.py b/src/Mod/Path/Path/GuiInit.py index 63b5a7607b..65819c6edb 100644 --- a/src/Mod/Path/Path/GuiInit.py +++ b/src/Mod/Path/Path/GuiInit.py @@ -80,7 +80,7 @@ def Startup(): from PathScripts import PathUtilsGui - from packaging.version import Version, parse + from packaging.version import Version, parse, InvalidVersion # If camotics is installed and current enough, import the GUI try: @@ -95,7 +95,7 @@ def Startup(): v = parse(r.decode("utf-8")) if v >= Version("1.2.2"): from Path.Main.Gui import Camotics - except (FileNotFoundError, ModuleNotFoundError): + except (FileNotFoundError, ModuleNotFoundError, InvalidVersion): pass Processed = True