From 5d69e12200d9c9652738f1a5cc11f0aaf02b5639 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Thu, 17 Nov 2005 03:46:43 +0000 Subject: 2005-11-16 Jeremy Katz * utils/trimpciids (f): Make a little bit more failure resistent --- utils/trimpciids | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils') diff --git a/utils/trimpciids b/utils/trimpciids index dfd5c1e58..1276d755a 100755 --- a/utils/trimpciids +++ b/utils/trimpciids @@ -22,6 +22,9 @@ if f: devices.append( (vend, dev) ) for file in sys.argv[2:]: + if not os.path.exists(file): + sys.stderr.write("WARNING: non-existent file %s for trimpciids\n" %(file,)) + continue f = open(file) if f: pcitable = f.readlines() -- cgit