Not a huge deal, but one way to deal with this would be along the lines of

```python
for date_format in [DATE_FORMAT, DATE_FORMAT2, DATE_FORMAT3]:
    try:
        ...
    except ValueError:
        pass
    else:
        break # or return
...