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
This commit is contained in:
Eduardo Olivares 2024-12-09 08:33:28 +01:00
parent 41fa012c57
commit 8175ddd879

View File

@ -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