jweyl

Testing for error severity from ArcGIS 9.3.1 to ArcGIS 10

Discussion created by jweyl on Sep 7, 2011
Latest reply on Sep 7, 2011 by mzcoyle
Hi -

At 9.3.1 we were able to test for the severity of an error based on creating a gp object and setting it equal to a variable severity = gp.MaxServerity. Then we cycle through the code checking for each type (0, 1 or 2) and do something depending on the result.

At ArcGIS 10 with arcpy this no longer works. I have been researching documentation and can't find out how to do this correctly.

When I try I get this back:
severity = arcpy.maxSeverity
AttributeError: 'module' object has no attribute 'maxSeverity'

Any insight would be great.

Outcomes