Remove the `except KeyError` clause, it won't get raised anymore
The best format with the extension is downloaded.
The format selection code is now an independent function.