def _drop_task(self, task_name):
    if (task_name in self._task_specific_attributes):
        if (self._current_task == task_name):
            log.error('`%s` is the current task. Switch to some other task before dropping this.', task_name)
        else:
            self._task_specific_attributes.pop(task_name)
    else:
        log.warning('No task exists with the name `%s`.', task_name)
def _drop_task(self, task_name):
    if (task_name in self._task_specific_attributes):
        if (self._current_task == task_name):
            log.error('`%s` is the current task. Switch to some other task before dropping this.', task_name)
        else:
            self._task_specific_attributes.pop(task_name)
    else:
        log.warning('No task exists with the name `%s`.', task_name)