From bb07ca0b57b59152ef892108ae7b52c53bdaf9d9 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 3 Feb 2011 04:53:01 +0000 Subject: [PATCH] Limit exception catching to IOError; i.e., missing files. I much prefer to get a stack trace in most situations. --- ndiff/ndiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndiff/ndiff b/ndiff/ndiff index 77f56edc0..b70bf8f4e 100755 --- a/ndiff/ndiff +++ b/ndiff/ndiff @@ -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)