

@tornado.gen.coroutine
def get_config_key(self, key):
    '\n        Look up a config key in the database. If not present, return None.\n        '
    try:
        res = (yield motor.Op(res.application.mongodb.config.find_one, {
            'key': key,
        }))
    except Exception as ex:
        raise MessageException(('Database error: %s' % (ex,)))
    if (not res):
        return None
    return res['val']

dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/handlers.py MyHandlerMixin.get_config_key/VarMisuse@33/70 `self`->`res`