import settings try/except in decorators