Did I find the right examples for you? yes no

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
Raised when an operation can not be executed because of a lock

src/c/o/confine-controller-0.10.5/controller/utils/options.py   confine-controller(Download)
from django.utils.module_loading import module_has_submodule
from controller.core.exceptions import OperationLocked
from controller.utils.paths import get_project_root
from controller.utils.system import run, touch
    def __enter__(self):
        if not self.unlocked:
            if not self.acquire():
                raise OperationLocked('%s lock file exists and its mtime is less '
                    'than %s seconds' % (self.lockfile, self.expire))

src/c/o/confine-controller-0.10.5/controller/apps/state/actions.py   confine-controller(Download)
from django.shortcuts import redirect
from controller.core.exceptions import OperationLocked
from .tasks import get_state