From: Juraj Linkeš <juraj.linkes@pantheon.tech> To: lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, Juraj Linkeš <juraj.linkes@pantheon.tech> 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> (raw) 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š <juraj.linkes@pantheon.tech> --- 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) -- 2.20.1
next reply other threads:[~2021-11-24 13:51 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-24 13:51 Juraj Linkeš [this message] 2021-12-08 8:54 ` [PATCH v2] " Juraj Linkeš 2022-01-14 7:58 ` [PATCH v1] " Tu, Lijuan
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1637761862-4247-1-git-send-email-juraj.linkes@pantheon.tech \ --to=juraj.linkes@pantheon.tech \ --cc=dts@dpdk.org \ --cc=lijuan.tu@intel.com \ --cc=ohilyard@iol.unh.edu \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
test suite reviews and discussions This inbox may be cloned and mirrored by anyone: git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \ dts@dpdk.org public-inbox-index dts Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.dts AGPL code for this site: git clone https://public-inbox.org/public-inbox.git