[v1] framework/tester: fix pylama errors
Checks
Commit Message
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(-)
Comments
> -----Original Message-----
> From: Juraj Linkeš <juraj.linkes@pantheon.tech>
> Sent: 2021年11月24日 21:51
> To: Tu, Lijuan <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
>
> 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>
Applied, thanks
@@ -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)