"raise e"🙂It's just what's in the "except" statement for when something fails. Here's the whole function that's in there (but just to be clear, this is ESRI code, not mine):@gptooldoc('CreateVersion_management', None)
def CreateVersion(in_workspace=None, parent_version=None, version_name=None, access_permission=None):
"""CreateVersion_management(in_workspace, parent_version, version_name, {access_permission})
Creates a new version in the specified geodatabase.
INPUTS:
in_workspace (RemoteDatabase):
The ArcSDE geodatabase that contains the parent version and will contain the new
version. The default is to use the workspace defined in the environment
settings.
parent_version (String):
The geodatabase, or version of a geodatabase, on which the new version will be
based.
version_name (String):
The name of the version to be created.
access_permission {String}:
The permission access level for the version."""
try:
retval = convertArcObjectToPythonObject(gp.CreateVersion_management(*gp_fixargs((in_workspace, parent_version, version_name, access_permission), True)))
return retval
except Exception, e:
raise e
I'm not gonna hunt down what went wrong in the convertArcObjectToPythonObject function. If there's a problem there then that's certainly an ESRI issue.