def execute_sql(self, *a, **kw):
        try:
            return super(SQLInsertCompiler, self).execute_sql(*a, **kw)
        except InvalidGaeKey:
            raise DatabaseError("Ivalid value for a key filter on GAE.")