|Reported by:||martinl||Owned by:|
In trunk Python Scripting Library is used ScriptError from PyGRASS source:grass/trunk/lib/python/script/core.py#L36. It was introduced in r61187 by zarch. In relbr70 is still used it's own implementation of
ScriptError source:grass/branches/releasebranch_7_0/lib/python/script/core.py#L70 which defines attribute
value. This attribute is accessed on many places of Python Scripting Library or wxGUI, eg.
except ScriptError as e: self.errorMsg = e.value
ScriptError from PyGRASS doesn't have this attribute, it fails with
File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/task.py", line 70, in __init__ self.errorMsg = e.value AttributeError: 'ScriptError' object has no attribute 'value'