I am have a question pertaining to handling specific errors in arcpy 3.7. I want to capture the specific ERROR 000466: <value> does not match the schema of target <value>. The following code narrows it down to the arcpy.ExecuteError, but I cannot find a graceful method to further identify the error as ERROR 000466. The sys.exc_info()[1] returns the entire error value but I would just like the error number without having to parse the string.
try:
my code here...
except arcpy.ExecuteError:
e = sys.exc_info()[1]
print(e)
except:
handle of other errors