def _create_datastore(self, datastore_name):
        try:
            self.server.create(datastore_name)
        except PreconditionFailed:
            raise BadRequest("Datastore with name %s already exists" % datastore_name)
        except __HOLE__:
            raise BadRequest("Datastore name %s invalid" % datastore_name)
        except ServerError as se:
            if se.message[1][0] == 'illegal_database_name':
                raise BadRequest("Data store name %s invalid" % datastore_name)
            else:
                raise
dataset/ETHPy150Open ooici/pyon/pyon/datastore/couchdb/base_store.py/CouchDataStore._create_datastore