Greetings

I have  python script where I try to catch, as much as possible all errors,
in order to avoid "abrupt" ERRORS from the script.
for instance I do this for grass.run_command:

p=grass.run_command("i.group", group=group_name, subgroup="subgroup", input=
input)
    if p!=0:
       grass.fatal(_("ERROR MESSAGE"))

but 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?
Thanks

Kim
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to