[GRASS-git] [OSGeo/grass] d23b59: r.semantic.label: exit with error when print targe...

Valyrian-Code noreply at github.com
Wed Jun 24 19:33:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: d23b59e3bb090544f1468484c2420ecdefc1e1b9
      https://github.com/OSGeo/grass/commit/d23b59e3bb090544f1468484c2420ecdefc1e1b9
  Author: Rajveer* <irajveer.bishnoi2310 at gmail.com>
  Date:   2026-06-24 (Wed, 24 Jun 2026)

  Changed paths:
    M scripts/r.semantic.label/r.semantic.label.py
    A scripts/r.semantic.label/tests/r_semantic_label_test.py

  Log Message:
  -----------
  r.semantic.label: exit with error when print target is missing (#7496)

operation=print printed an error but exited successfully when the raster map was not found, because print_map_semantic_label returned None on OpenError and main() ignored it. The add/remove path returns 1 for the same condition and main() propagates it. Make print return a status (1 on a missing map, 0 otherwise) and have main() honor it, so all operations exit consistently.



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