From 004fb7182ba4fa8366955c2e421ad1b0843d430b Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 21 Jun 2011 20:02:16 +0000 Subject: [PATCH] Replace OSError by the correct class IOError R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/7215025 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@89884 0039d316-1c4b-4281-b951-d872f2087c98 --- checkout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkout.py b/checkout.py index 96289b3bb..a8fdcd2fc 100644 --- a/checkout.py +++ b/checkout.py @@ -42,7 +42,7 @@ def get_code_review_setting(path, key, settings[k.strip()] = v.strip() finally: settings_file.close() - except OSError: + except IOError: return None return settings.get(key, None)