mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Avoid handling BaseException, so SysExit and KeyboardInterrupt are propagated. #1834
This commit is contained in:
@@ -648,7 +648,7 @@ class NetworkInventoryTest(unittest.TestCase):
|
||||
inv.add_scan(scan_2)
|
||||
try:
|
||||
inv.remove_scan(scan_3)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
self.assertEqual(added_ips, inv.hosts.keys())
|
||||
self.assertEqual(host_a.hostnames, ["a"])
|
||||
|
||||
Reference in New Issue
Block a user