From patchwork Wed Nov 24 13:51:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Juraj_Linke=C5=A1?= X-Patchwork-Id: 104673 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 50979A0C52; Wed, 24 Nov 2021 14:51:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F43C411FE; Wed, 24 Nov 2021 14:51:06 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 69157411E6 for ; Wed, 24 Nov 2021 14:51:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id DA38610DDB5; Wed, 24 Nov 2021 14:51:04 +0100 (CET) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l5xDGQ1HBqHW; Wed, 24 Nov 2021 14:51:03 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id 3A30D10DDB0; Wed, 24 Nov 2021 14:51:03 +0100 (CET) From: =?utf-8?q?Juraj_Linke=C5=A1?= To: lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= Subject: [PATCH v1] framework/tester: fix pylama errors Date: Wed, 24 Nov 2021 14:51:02 +0100 Message-Id: <1637761862-4247-1-git-send-email-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Pylama found the following errors: framework/tester.py:348: [E] E1101 Instance of 'Exception' has no 'message' member [pylint] framework/tester.py:372: [E] E1101 Instance of 'Exception' has no 'message' member [pylint] Signed-off-by: Juraj Linkeš --- Lijuan, please add additional people to review if needed. --- framework/tester.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/tester.py b/framework/tester.py index 9dba4e4d..e204ac6d 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -345,7 +345,7 @@ class Tester(Crb): self.send_expect("ifconfig %s up" % itf, "# ") except Exception as e: - self.logger.error(" !!! Restore ITF: " + e.message) + self.logger.error(f" !!! Restore ITF: {e}") sleep(2) @@ -369,7 +369,7 @@ class Tester(Crb): self.enable_ipv6(itf) self.send_expect("ifconfig %s up" % itf, "# ") except Exception as e: - self.logger.error(" !!! Restore ITF: " + e.message) + self.logger.error(f" !!! Restore ITF: {e}") sleep(2)