From 48dc7fa38cf96813321dba7fc5b9fc3ce78d263f Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 26 Sep 2024 20:53:12 -0400 Subject: [PATCH] test minor --- CMakeLists.txt | 2 +- commit.py | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad24e24..7ef1229 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(COSC-4P80-Assignment-1 VERSION 13.2.0) +project(COSC-4P80-Assignment-1 VERSION 13.3.0) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/commit.py b/commit.py index 3dfbcbb..7948555 100755 --- a/commit.py +++ b/commit.py @@ -56,15 +56,12 @@ class Config: content[idx] = c.replace("export", "").strip() values[content[0]] = content[1].replace("\"", "").replace("'", "") config = Config() - try: - config.branch_on_major = values["branch_on_major"].lower() == "true" - config.branch_on_minor = values["branch_on_minor"].lower() == "true" - config.release_on_major = values["release_on_major"].lower() == "true" - config.release_on_minor = values["release_on_minor"].lower() == "true" - config.main_branch = values["main_branch"] - config.patch_limit = int(values["patch_limit"]) - except: - return config + config.branch_on_major = values["branch_on_major"].lower() == "true" + config.branch_on_minor = values["branch_on_minor"].lower() == "true" + config.release_on_major = values["release_on_major"].lower() == "true" + config.release_on_minor = values["release_on_minor"].lower() == "true" + config.main_branch = values["main_branch"] + config.patch_limit = int(values["patch_limit"]) return config;