From 6d4530fe382ae52ca6ebbcca534b9e6751e98630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 29 Apr 2020 16:24:30 +0200 Subject: [PATCH] fix test --- satella/exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/satella/exceptions.py b/satella/exceptions.py index 098c54ac..320f13d0 100644 --- a/satella/exceptions.py +++ b/satella/exceptions.py @@ -15,7 +15,8 @@ class CustomException(Exception): 1. Accept any number of arguments 2. Provide faithful __repr__ and a reasonable __str__ - It passed all arguments that your exception received via super() + It passed all arguments that your exception received via super(). + Just remember to actually pass these arguments in your inheriting classes! """ def __init__(self, *args, **kwargs): super().__init__(*args) @@ -156,6 +157,7 @@ class LockIsHeld(ResourceLocked): """ def __init__(self, pid): + super().__init__(pid) self.pid = pid @@ -163,4 +165,5 @@ class ProcessFailed(BaseSatellaError): """A process finished with other result code that it was requested""" def __init__(self, rc: int): + super().__init__(rc) self.rc = rc -- GitLab