Same as parse_http_date, but return None if the input is invalid.
(date)
| 138 | |
| 139 | |
| 140 | def parse_http_date_safe(date): |
| 141 | """ |
| 142 | Same as parse_http_date, but return None if the input is invalid. |
| 143 | """ |
| 144 | try: |
| 145 | return parse_http_date(date) |
| 146 | except Exception: |
| 147 | pass |
| 148 | |
| 149 | |
| 150 | # Base 36 functions: useful for generating compact URLs |
no test coverage detected