Skip to content
Open
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
2 changes: 0 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
- name: Install dependencies
run: |
pipenv --python $(which python) install --dev
pipenv install sphinx
pipenv install sphinx_rtd_theme
- name: Build docs
run: |
pipenv run sphinx-apidoc -f -o docs meilisearch/
Expand Down
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ tomli = {version = "*", markers="python_version < '3.11'"}
wrapt = {version = "*", markers="python_version < '3.11'"}
dill = {version = "*"}
pytest-cov = "*"
sphinx = "*"
sphinx-rtd-theme = "*"

[packages]
requests = "*"
Expand Down
12 changes: 4 additions & 8 deletions meilisearch/_httprequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ def send_request(
raise MeilisearchCommunicationError(str(err)) from err
except requests.exceptions.InvalidSchema as err:
if "://" not in self.config.url:
raise MeilisearchCommunicationError(
f"""
raise MeilisearchCommunicationError(f"""
Invalid URL {self.config.url}, no scheme/protocol supplied.
Did you mean https://{self.config.url}?
"""
) from err
""") from err

raise MeilisearchCommunicationError(str(err)) from err

Expand Down Expand Up @@ -203,12 +201,10 @@ def post_stream(
raise MeilisearchApiError(str(err), response) from err
except requests.exceptions.InvalidSchema as err:
if "://" not in self.config.url:
raise MeilisearchCommunicationError(
f"""
raise MeilisearchCommunicationError(f"""
Invalid URL {self.config.url}, no scheme/protocol supplied.
Did you mean https://{self.config.url}?
"""
) from err
""") from err

raise MeilisearchCommunicationError(str(err)) from err

Expand Down