Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3830 closed defect (fixed)

pygrass.gis.Region.write(): Typo in Exception message

Reported by: pmav99 Owned by: grass-dev@…
Priority: normal Milestone:
Component: PyGRASS Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

https://grass.osgeo.org/grass77/manuals/libpython/_modules/pygrass/gis/region.html#Region.write

pygrass.gis.Region.write() is calling G_put_window which writes to WIND. The pygrass method though raises an Exception mentioning DEFAULT_WIND. The following patch needs to be applied:

-            raise GrassError("Cannot change region (DEFAUL_WIND file).")
+            raise GrassError("Cannot change region (WIND file).")

Change History (3)

comment:1 by neteler, 5 years ago

Resolution: fixed
Status: newclosed

In 74463:

pygrass.gis.Region.write(): fix typo in exception message (fixes #3830) (contributed by pmav99)

comment:2 by neteler, 5 years ago

In 74464:

pygrass.gis.Region.write(): fix typo in exception message (backport from trunk, r74463, see #3830) (contributed by pmav99)

comment:3 by neteler, 5 years ago

In 74465:

pygrass.gis.Region.write(): fix typo in exception message (backport from trunk, r74463, see #3830) (contributed by pmav99)

Note: See TracTickets for help on using tickets.