Commit 1810265b authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nixos/test-driver: name exception according to pep8

parent a1f01abe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ from typing import Callable, Optional
from .logger import rootlog


class PollingConditionFailed(Exception):
class PollingConditionError(Exception):
    pass


@@ -60,7 +60,7 @@ class PollingCondition:

    def maybe_raise(self) -> None:
        if not self.check():
            raise PollingConditionFailed(self.status_message(False))
            raise PollingConditionError(self.status_message(False))

    def status_message(self, status: bool) -> str:
        return f"Polling condition {'succeeded' if status else 'failed'}: {self.description}"