try:
print("Place code here")
except arcpy.ExecuteError:
Errors = "TRUE"
print("An error occurred during geoprocessing:")
print(arcpy.GetMessages(2))
except Exception as ErrorDesc:
Errors = "TRUE"
print("An unknown error occurred:")
print(ErrorDesc.message)
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
arcpy.CopyFeatures_management(polygon, ShapeFile_prj)
File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 1943, in CopyFeatures
raise e
AttributeError: <unprintable AttributeError object>
>>> polygon <Polygon object at 0xf34f550[0x347d9e0]> >>> ShapeFile_prj 'F:\\vector\\Biboohra_Koah\\25cm\\TPE0_330000_8135000_1k_cont.shp' >>>