From 00c5ea3787a6423db01e961d9aac8fe240e2de08 Mon Sep 17 00:00:00 2001 From: Sl0v3C Date: Sun, 7 Nov 2021 08:48:09 +0800 Subject: [PATCH] Fix typo for ValueError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which will cause error log like below: NameError: name 'ValueErrorl' is not defined Change-Id: I388886b7cf6d700e224c3847b7ba4ba4fe9c041d Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/323015 Reviewed-by: Mike Frysinger Tested-by: 彭杨益 --- git_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_config.py b/git_config.py index 3cd0939..6f80ae0 100644 --- a/git_config.py +++ b/git_config.py @@ -352,7 +352,7 @@ class GitConfig(object): Trace(': parsing %s', self.file) with open(self._json) as fd: return json.load(fd) - except (IOError, ValueErrorl): + except (IOError, ValueError): platform_utils.remove(self._json, missing_ok=True) return None