1
0
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:
david
2011-02-03 04:53:01 +00:00
parent 4c649d481b
commit bb07ca0b57

View File

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