Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

arcpy.GetMessages returns empty [BUG]

$
0
0
I am trying to access the messages that were logged throughout a script.

Code:

arcpy.AddMessage("Something...")
message = arcpy.GetMessages()
print message  # always empty

The above is always empty.

According to the documentation [http://resources.arcgis.com/en/help/...000007000000/]

Quote:

Creates a geoprocessing informative message (Severity=0) that can be accessed with any of the GetMessages functions.
What am I missing here?


I'm starting to think this is either a bug or something not documented.

Viewing all articles
Browse latest Browse all 2485

Trending Articles