[GRASS-git] [OSGeo/grass] f131b6: grass.utils: Fix the download error message and li...
Vaclav Petras
noreply at github.com
Wed Jul 15 03:19:49 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: f131b6caa797081a9a0cc4ca42514e793161f56b
https://github.com/OSGeo/grass/commit/f131b6caa797081a9a0cc4ca42514e793161f56b
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M python/grass/utils/download.py
A python/grass/utils/tests/grass_utils_download_test.py
M scripts/g.download.project/g.download.project.html
M scripts/g.download.project/g.download.project.md
Log Message:
-----------
grass.utils: Fix the download error message and limit the URL schemes (#7687)
Fix the HTTP error message, which lost its {desc} placeholder and was
formatted with the whole HTTPError instead of a status code. Limit a download
to the supported schemes (http, https, ftp, file), since urlretrieve opens
any scheme, including data and custom ones (Bandit B310), and document that a
local archive needs the file scheme (no change in behavior, just doc clarity).
Skip the content type check for a local file, which fixed extracting a local ZIP
on Windows. Add tests for the module.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list