From 8175ddd879e37d4fd30205900383cf6039cc75ee Mon Sep 17 00:00:00 2001 From: Eduardo Olivares Date: Mon, 9 Dec 2024 08:33:28 +0100 Subject: [PATCH] Fix log message when reading tcpdump file fails An exception was raised: TypeError: not all arguments converted during string formatting Using LOG.exception alredy prints the caught exception. Change-Id: Ie65d47889485c48c6eb314e740bd2f52464ee0ef --- whitebox_neutron_tempest_plugin/common/tcpdump_capture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whitebox_neutron_tempest_plugin/common/tcpdump_capture.py b/whitebox_neutron_tempest_plugin/common/tcpdump_capture.py index 5b66f5f..ffc24d2 100644 --- a/whitebox_neutron_tempest_plugin/common/tcpdump_capture.py +++ b/whitebox_neutron_tempest_plugin/common/tcpdump_capture.py @@ -80,8 +80,8 @@ class TcpdumpCapture(fixtures.Fixture): def is_empty(self): try: pcap = rdpcap(self._open_capture_file()) - except Exception as e: - LOG.debug('Error reading pcap file: ', str(e)) + except Exception: + LOG.exception('Error reading pcap file') return True for record in pcap: return False