Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0




[v0.17.1] - 2025-09-17
----------------------

Fixed
~~~~~

* wrong type checking inside `__init__` of `get_client`. Now initialize with GetCapabilities url


[v0.17.0] - 2025-09-16
----------------------

Expand Down
2 changes: 1 addition & 1 deletion ows_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.17.0"
__version__ = "0.17.1"
VERSION = __version__ # synonym
6 changes: 4 additions & 2 deletions ows_lib/client/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(

if isinstance(capabilities, OGCServiceMixin):
self.capabilities = capabilities
elif capabilities is str and "?" in capabilities:
elif isinstance(capabilities, str) and "?" in capabilities:
# client was initialized with an url
response = self.send_request(
request=Request(method="GET", url=capabilities))
Expand All @@ -41,7 +41,9 @@ def __init__(
else:
raise InitialError(
f"client could not be initialized by the given url: {capabilities}. Response status code: {response.status_code}")

else:
raise TypeError("capabilities has to be GetCapabilities URL or parsed capabilites of type OGCServiceMixin")

def send_request(self, request: OGCRequest, timeout: int = 10) -> Response:
"""Sends a given request with internal session object.

Expand Down
Loading