diff options
-rwxr-xr-x | scripts/diffconfig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/diffconfig b/scripts/diffconfig index b91f3e34d44d..0ee65839f7aa 100755 --- a/scripts/diffconfig +++ b/scripts/diffconfig | |||
@@ -94,8 +94,13 @@ def main(): | |||
94 | configa_filename = sys.argv[1] | 94 | configa_filename = sys.argv[1] |
95 | configb_filename = sys.argv[2] | 95 | configb_filename = sys.argv[2] |
96 | 96 | ||
97 | a = readconfig(file(configa_filename)) | 97 | try: |
98 | b = readconfig(file(configb_filename)) | 98 | a = readconfig(file(configa_filename)) |
99 | b = readconfig(file(configb_filename)) | ||
100 | except (IOError): | ||
101 | e = sys.exc_info()[1] | ||
102 | print("I/O error[%s]: %s\n" % (e.args[0],e.args[1])) | ||
103 | usage() | ||
99 | 104 | ||
100 | # print items in a but not b (accumulate, sort and print) | 105 | # print items in a but not b (accumulate, sort and print) |
101 | old = [] | 106 | old = [] |