[PATCH v1] framework/tester: fix pylama errors
Juraj Linkeš
juraj.linkes at pantheon.tech
Wed Nov 24 14:51:02 CET 2021
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 at 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
More information about the dts
mailing list