Fix ruff.

This commit is contained in:
Talmaj Marinc 2026-07-01 11:36:23 +02:00
parent 27fd68a533
commit 3eb36377a8
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ Three tables:
- ``download_segments`` per-segment byte progress, for segmented resume. - ``download_segments`` per-segment byte progress, for segmented resume.
- ``host_credentials`` one API key per host, reused across downloads. - ``host_credentials`` one API key per host, reused across downloads.
On completion a finished file is registered into the assets catalog; On completion a finished file is registered into the assets catalog;
``downloads`` is kept only as job history. ``downloads`` is kept only as job history.
""" """

View File

@ -56,7 +56,7 @@ def _allowed_hosts() -> dict[str, set[str]]:
def is_host_allowed(host: str | None, scheme: str | None) -> bool: def is_host_allowed(host: str | None, scheme: str | None) -> bool:
"""True iff ``host`` is allowlisted for ``scheme``. """True iff ``host`` is allowlisted for ``scheme``.
Used both for the initial URL and re-checked on every redirect hop, Used both for the initial URL and re-checked on every redirect hop,
so a whitelisted URL cannot 30x into an off-list host. so a whitelisted URL cannot 30x into an off-list host.
""" """
if not host or not scheme: if not host or not scheme: