From: Stephen Seo Date: Sat, 4 Feb 2023 07:57:43 +0000 (+0900) Subject: Minor fix X-Git-Url: https://git.seodisparate.com/stephenseo/css/base.css?a=commitdiff_plain;h=9335a4336026ee0c6719b8e317a51610fd0558fd;p=AnotherAURHelper Minor fix --- diff --git a/update.py b/update.py index 4c8a0f2..31719f3 100755 --- a/update.py +++ b/update.py @@ -32,7 +32,7 @@ class ArchPkgVersion: self.versions = [] self.pkgver = 0 end_dash_idx = version_str.rfind("-") - if end_dash_idx != -1: + if end_dash_idx != -1 and end_dash_idx + 1 < len(version_str): try: self.pkgver = int(version_str[end_dash_idx + 1 :]) except ValueError: