

def is_backup_running(self, name=None, agent=None):
    'See :func:`burpui.misc.backend.interface.BUIbackend.is_backup_running`'
    if (not name):
        return False
    try:
        query = self.status('c:{0}\n'.format(name))
    except BUIserverException:
        return False
    if (not name):
        return False
    try:
        return (query['clients'][0]['run_status'] in ['running'])
    except KeyError as e:
        self._logger('warning', 'Client not found')
        return False
    return False

dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp2.py Burp.is_backup_running/VarMisuse@63/106 `query`->`name`