diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2db2da7..7b9da4c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -50,7 +50,7 @@ jobs: previous_version_escaped=$(echo "$previous_version" | sed 's/\./\\./g') # Extract release notes - release_notes=$(awk "/## \[$current_version_escaped\]/,/## \[$previous_version_escaped\]/" "$changelog_file" | sed '$d') + release_notes=$(awk "/# \[$current_version_escaped\]/,/# \[$previous_version_escaped\]/" "$changelog_file" | sed '$d') echo "$release_notes" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f7a4bb..b4020a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ CHANGELOG ========= +# [2.0.10] - 2024-07-19 +* Support more successful status codes + # [2.0.9] - 2024-07-01 * Fix `'str' object has no attribute 'items'` issue when `--table` flag is present diff --git a/modular_cli/service/decorators.py b/modular_cli/service/decorators.py index c00b061..f16744d 100644 --- a/modular_cli/service/decorators.py +++ b/modular_cli/service/decorators.py @@ -298,7 +298,7 @@ def _prettify_warnings(warnings: list): @staticmethod def is_response_success(response_meta: CommandResponse): - return 200 <= response_meta.code <= 206 # + 207, 208, 226 + return 200 <= response_meta.code < 400 @staticmethod def unpack_success_result_values(response_meta: CommandResponse): diff --git a/modular_cli/version.py b/modular_cli/version.py index 9d2551a..fca23f6 100644 --- a/modular_cli/version.py +++ b/modular_cli/version.py @@ -1 +1 @@ -__version__ = '2.0.9' +__version__ = '2.0.10'