Bug fixes

You actually don't need to pass the actual exception to the warning.
```python
except OSError:
    container["extensions"].clear()
    current_app.logger.warning("Could not retrieve the available formats", exc_info=True)
```
See: http://hg.python.org/cpython/file/2.7/Lib/logging/__init__.py#l1162