From e94cd3a5d5afee22f01356b2fa4184b70ba6de7d Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 29 Mar 2024 23:15:49 +0200 Subject: [PATCH] Updated for an invalid version --- slpkg/upgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index 5efb045a..599c7bb0 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from typing import Generator -from packaging.version import parse +from packaging.version import parse, InvalidVersion from pathlib import Path from slpkg.configs import Configs @@ -73,7 +73,7 @@ class Upgrade(Configs): if parse(repo_version) == parse(inst_version): if int(repo_build) > int(inst_build): return True - except ValueError: + except InvalidVersion: return False return False