[GRASS-git] [OSGeo/grass-addons] df511d: r.in.nasadem: catch http error (#822)

Guido Riembauer noreply at github.com
Tue Nov 8 22:55:08 PST 2022


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: df511d629a3e4eb0738131fff6b9179adbad9943
      https://github.com/OSGeo/grass-addons/commit/df511d629a3e4eb0738131fff6b9179adbad9943
  Author: Guido Riembauer <62383722+griembauer at users.noreply.github.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    M src/raster/r.in.nasadem/r.in.nasadem.py

  Log Message:
  -----------
  r.in.nasadem: catch http error (#822)

This PR fixes #821:

- Any connection error for the download of nasadem tiles is now properly caught and reported using the generic [urllib.error.URLError](https://docs.python.org/3/library/urllib.error.html)
- A bug in the cleanup function is fixed: The region is saved in the original location/mapset, but at the beginning of the cleanup function, we may still be in the temp location. This resulted in errors of `g.remove type=region...`




More information about the grass-commit mailing list