diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-23 10:02:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 10:02:15 -0700 |
commit | b15b94de091d184e1f1281af190debaf9b92de78 (patch) | |
tree | f05429250f00a798f97ce9f3562dda719282cd2e /Lib/email/_header_value_parser.py | |
parent | c8f1095e0a13c943eeca50802887fce4a9a7decc (diff) | |
download | cpython-git-b15b94de091d184e1f1281af190debaf9b92de78.tar.gz |
gh-93010: InvalidHeaderError used but nonexistent (GH-93015)
* fix issue 93010
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 71abeb0895f7563dc5ac4b4f077a8f87dab57e7a)
Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
Diffstat (limited to 'Lib/email/_header_value_parser.py')
-rw-r--r-- | Lib/email/_header_value_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py index 8a8fb8bc42..e637e6df06 100644 --- a/Lib/email/_header_value_parser.py +++ b/Lib/email/_header_value_parser.py @@ -2379,7 +2379,7 @@ def get_section(value): digits += value[0] value = value[1:] if digits[0] == '0' and digits != '0': - section.defects.append(errors.InvalidHeaderError( + section.defects.append(errors.InvalidHeaderDefect( "section number has an invalid leading 0")) section.number = int(digits) section.append(ValueTerminal(digits, 'digits')) |