Catch all Django errors and some PEP8 cleanup.
Catch all Django errors and some PEP8 cleanup.

Django can throw a variety of errors, so we need to catch
Django-specific exceptions instead of just an ImportError.

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt