def version_control(version=None):
 sql_connection = CONF.sql_connection
 try:
  _version_control(version)
 except versioning_exceptions.DatabaseAlreadyControlledError as e:
  msg = _('database is already under migration control')
  raise exception.DatabaseMigrationError(msg)

def version_control ( version = None ) : sql_connection = CONF . sql_connection try : _version_control ( version ) except versioning_exceptions . DatabaseAlreadyControlledError as e : msg = _ ( 'database is already under migration control' ) raise exception . DatabaseMigrationError ( msg )
place a database under migration control .