Catch ImproperlyConfigured exception in compat.py (fixes #803)
Merge pull request #804 from dbrgn/iss803

Catch ImproperlyConfigured exception in compat.py