configparser: catch another exception (#9924)

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56168
This commit is contained in:
DavidKorczynski 2023-03-14 17:38:29 +00:00 committed by GitHub
parent 0cace22082
commit 39eebf89b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ def TestOneInput(data):
config_parser.read_dict(json_dict)
except (configparser.Error):
pass
except ValueError:
# Thrown at: https://github.com/jaraco/configparser/blob/8b5181b4f270be88f3e4572300406587fdbd4a6e/src/backports/configparser/__init__.py#L422
pass
def main():