aboutsummaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
Diffstat (limited to 'release')
-rwxr-xr-xrelease/cibuild.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/cibuild.py b/release/cibuild.py
index 82060639..799c7929 100755
--- a/release/cibuild.py
+++ b/release/cibuild.py
@@ -190,7 +190,9 @@ class BuildEnviron:
"""
with open(pathlib.Path(self.root_dir) / "mitmproxy" / "version.py") as f:
contents = f.read()
- version = re.search(r'^VERSION = "(.+?)"', contents, re.M).group(1)
+ match = re.search(r'^VERSION = "(.+?)"', contents, re.M)
+ assert match
+ version = match.group(1)
if self.is_prod_release:
# For production releases, we require strict version equality