mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 20:39:02 +00:00
Limit exception catching to IOError; i.e., missing files. I much prefer
to get a stack trace in most situations.
This commit is contained in:
@@ -1198,7 +1198,7 @@ def main():
|
||||
scan_a.load_from_file(filename_a)
|
||||
scan_b = Scan()
|
||||
scan_b.load_from_file(filename_b)
|
||||
except Exception, e:
|
||||
except IOError, e:
|
||||
print >> sys.stderr, u"Can't open file: %s" % str(e)
|
||||
sys.exit(EXIT_ERROR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user