def parse(subject, value, red): try: date = rh.parse_date(value) except ValueError: red.add_note(subject, rs.BAD_DATE_SYNTAX) return None return date
def parse(self, field_value: str, add_note: AddNoteMethodType) -> int: try: date_value = headers.parse_date(field_value, add_note) except ValueError: raise return date_value
def parse(self, field_value: str, add_note: AddNoteMethodType) -> int: try: date = headers.parse_date(field_value, add_note) except ValueError: raise return date