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:
parent
41fa012c57
commit
8175ddd879
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user