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;