From patchwork Mon Jun 23 16:57:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: malahal naineni X-Patchwork-Id: 4403991 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 46AA6BEEAA for ; Mon, 23 Jun 2014 16:58:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B40A4202B8 for ; Mon, 23 Jun 2014 16:58:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75421202A1 for ; Mon, 23 Jun 2014 16:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755137AbaFWQ6H (ORCPT ); Mon, 23 Jun 2014 12:58:07 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:60182 "EHLO e34.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753484AbaFWQ6G (ORCPT ); Mon, 23 Jun 2014 12:58:06 -0400 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Jun 2014 10:58:05 -0600 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Jun 2014 10:58:03 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id E165C3E4004C for ; Mon, 23 Jun 2014 10:58:02 -0600 (MDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by b03cxnp08026.gho.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5NGuwoq51511484 for ; Mon, 23 Jun 2014 18:56:58 +0200 Received: from d03av03.boulder.ibm.com (localhost [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5NGw210014451 for ; Mon, 23 Jun 2014 10:58:02 -0600 Received: from malahal (malahal.austin.ibm.com [9.41.105.170]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s5NGw2rB014414; Mon, 23 Jun 2014 10:58:02 -0600 Received: by malahal (Postfix, from userid 155450) id 7D502BFDC9; Mon, 23 Jun 2014 11:58:01 -0500 (CDT) From: Malahal Naineni To: linux-nfs@vger.kernel.org Cc: bfields@fieldses.org Subject: [PATCH 1/2] Check for None to avoid python exception. Date: Mon, 23 Jun 2014 11:57:41 -0500 Message-Id: <1403542662-8450-1-git-send-email-malahal@us.ibm.com> X-Mailer: git-send-email 1.7.0.4 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14062316-1542-0000-0000-000002C55F47 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Malahal Naineni --- nfs4.0/servertests/st_delegation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs4.0/servertests/st_delegation.py b/nfs4.0/servertests/st_delegation.py index 4965f5a..4da3a7a 100644 --- a/nfs4.0/servertests/st_delegation.py +++ b/nfs4.0/servertests/st_delegation.py @@ -35,7 +35,7 @@ def _recall(c, op, cbid): print "CALLBACK error in _recall:", e res = None _lock.release() - if res.status != NFS4_OK: + if res is not None and res.status != NFS4_OK: t_error = _handle_error(c, res, ops) t = threading.Thread(target=t_error.run) t.setDaemon(1)