Solved! Go to Solution.
errors = arcpy.GetMessages(2) # Does not have exclusive access to the database if 'ERROR 000464' in errors: errorString = 'WARNING: There is an active editing session Editing MUST be stopped'
errors = arcpy.GetMessages(2) # Does not have exclusive access to the database if 'ERROR 000464' in errors: errorString = 'WARNING: There is an active editing session Editing MUST be stopped'