KeyError quality when not in config
jaraco opened this issue · comments
Jason R. Coombs commented
Jason R. Coombs commented
huh. Looking at the code, the comment and the implementation both indicate to me that the 'quality' in the defaults should suffice. So how is it we are getting a KeyError?
Jason R. Coombs commented
Ahh. It's not an issue with the lib, but an issue with our deployment of it:
filepath = os.environ.get('APP_SETTINGS_YAML')
if filepath:
import yaml
thumpy.config = yaml.safe_load(open(filepath))
else:
from app_container import config
thumpy.config = config
app = thumpy.app