mirror of
https://github.com/nmap/nmap.git
synced 2026-06-27 03:33:07 +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:
parent
4c649d481b
commit
bb07ca0b57
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue