Greetings<div><br></div><div>I have python script where I try to catch, as much as possible all errors, in order to avoid "abrupt" ERRORS from the script.</div><div>for instance I do this for grass.run_command:</div>
<div><br></div><div><div>p=grass.run_command("i.group", group=group_name, subgroup="subgroup", input= input)</div><div> if p!=0:</div><div> grass.fatal(_("ERROR MESSAGE"))<span class="Apple-tab-span" style="white-space:pre">                        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre"><br></span></div><div><span class="Apple-tab-span" style="white-space:pre">b</span>ut I'm not being able to do this for grass.mapcalc. has anyone any suggestion or tip on how to do this for grass.mapcalc?</div>
<div>Thanks</div><div><br></div><div>Kim</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div></div>