Not a big deal for this, just a matter of dev style, but something like ``if self.config.get('debug'):`` feels cleaner to me.