Fix typo for ValueError

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 <vapier@google.com>
Tested-by: 彭杨益 <pyy101727@gmail.com>
This commit is contained in:
Sl0v3C 2021-11-07 08:48:09 +08:00 committed by Mike Frysinger
parent 0531a623e1
commit 00c5ea3787

View File

@ -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