It looks like you're guarding against ctx.config being None. Will that actually happen?