mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-16 07:33:16 +00:00
style: linting
This commit is contained in:
parent
ada89a2494
commit
9db717c774
|
@ -290,8 +290,10 @@ class StoppedService:
|
||||||
lambda: self.service.get_status() == ServiceStatus.INACTIVE,
|
lambda: self.service.get_status() == ServiceStatus.INACTIVE,
|
||||||
timeout_sec=DEFAULT_START_STOP_TIMEOUT,
|
timeout_sec=DEFAULT_START_STOP_TIMEOUT,
|
||||||
)
|
)
|
||||||
except TimeoutError as e:
|
except TimeoutError as error:
|
||||||
raise TimeoutError(f"timed out waiting for {self.service.get_display_name()} to stop")
|
raise TimeoutError(
|
||||||
|
f"timed out waiting for {self.service.get_display_name()} to stop"
|
||||||
|
) from error
|
||||||
return self.service
|
return self.service
|
||||||
|
|
||||||
def __exit__(self, type, value, traceback):
|
def __exit__(self, type, value, traceback):
|
||||||
|
@ -302,5 +304,7 @@ class StoppedService:
|
||||||
lambda: self.service.get_status() == ServiceStatus.ACTIVE,
|
lambda: self.service.get_status() == ServiceStatus.ACTIVE,
|
||||||
timeout_sec=DEFAULT_START_STOP_TIMEOUT,
|
timeout_sec=DEFAULT_START_STOP_TIMEOUT,
|
||||||
)
|
)
|
||||||
except TimeoutError as e:
|
except TimeoutError as error:
|
||||||
raise TimeoutError(f"timed out waiting for {self.service.get_display_name()} to start")
|
raise TimeoutError(
|
||||||
|
f"timed out waiting for {self.service.get_display_name()} to start"
|
||||||
|
) from error
|
||||||
|
|
Loading…
Reference in a new issue