diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f65b73..68da39c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,18 +11,18 @@ This is how you should do it: Use our [issue list](../../issues) to report a **bug** or **propose a new feature**, including -### Reporting a **bug report** +### Reporting a **bug report** - A quick summary and/or background - Steps to reproduce - What actually happens -### Adding a **feature request** +### Adding a **feature request** - Brief description of the feature - What problem/issue will this solve - A sort of Definition of Done - "How should it look when finished" -### When submitting a fix using a Pull Request (PR) -- Fork this repository from GitHub -- After you have made the changes, create a pull request (PR) +### When submitting a fix using a Pull Request (PR) +- Fork this repository from GitHub +- After you have made the changes, create a pull request (PR) -We will review the pull request and if it is appropriate and there are no clashes or vulnerabilities, it will be merged to the main code. \ No newline at end of file +We will review the pull request and if it is appropriate and there are no clashes or vulnerabilities, it will be merged to the main code. diff --git a/src/sumo/wrapper/sumo_client.py b/src/sumo/wrapper/sumo_client.py index 09011cf..e85fe3d 100644 --- a/src/sumo/wrapper/sumo_client.py +++ b/src/sumo/wrapper/sumo_client.py @@ -227,6 +227,11 @@ def get(self, path: str, params: Optional[Dict] = None) -> httpx.Response: path, ) is not None + or re.match( + r"^/tasks\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/result$", # noqa: E501 + path, + ) + is not None ): follow_redirects = True @@ -542,6 +547,11 @@ async def get_async( path, ) is not None + or re.match( + r"^/tasks\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/result$", # noqa: E501 + path, + ) + is not None ): follow_redirects = True