def _check_unnotified(self):
    if self._notified:
      raise RuntimeError("cannot use already notified condition")
Throws an exception if already notified.
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SingleNotifyPipeCondition._check_unnotified