Skip to content

email.utils.parsedate_to_datetime() should return None when date cannot be parsed #74866

Open
@timb07

Description

@timb07
mannequin
BPO 30681
Nosy @warsaw, @ncoghlan, @bitdancer, @ambv, @serhiy-storchaka, @sim0nx, @timb07, @miss-islington
PRs
  • bpo-30681: Change error handling to return None in case of invalid date #2229
  • bpo-30681: Support invalid date format or value #2254
  • bpo-30681: Support invalid date format or value in email Date header #10783
  • bpo-30681: Support invalid date format or value in email Date header #22090
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2017-06-15.23:12:43.396>
    labels = ['type-bug', 'expert-email', '3.10']
    title = 'email.utils.parsedate_to_datetime() should return None when date cannot be parsed'
    updated_at = <Date 2020-10-27.07:37:48.458>
    user = 'https://github.com/timb07'

    bugs.python.org fields:

    activity = <Date 2020-10-27.07:37:48.458>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['email']
    creation = <Date 2017-06-15.23:12:43.396>
    creator = 'timb07'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30681
    keywords = ['patch']
    message_count = 18.0
    messages = ['296137', '296141', '296153', '296154', '296215', '296226', '296231', '296235', '296361', '301618', '330628', '330648', '376384', '379381', '379412', '379464', '379706', '379742']
    nosy_count = 8.0
    nosy_names = ['barry', 'ncoghlan', 'r.david.murray', 'lukasz.langa', 'serhiy.storchaka', 'sim0n', 'timb07', 'miss-islington']
    pr_nums = ['2229', '2254', '10783', '22090']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30681'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibPython modules in the Lib dirtopic-emailtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions