From: Kamalesh Babulal Date: Wed, 23 Feb 2022 06:20:37 +0000 (+0530) Subject: container.py: Fix erroneous super call in ContainerError() X-Git-Tag: v3.1.0~308^2~2^2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce76a4b9dd7dc0353d4475944c1f358f9214f25d;p=thirdparty%2Flibcgroup.git container.py: Fix erroneous super call in ContainerError() ContainerError erroneously passed RunError into super() during init() time. Fix this by passing in ContainerError(). Reported-by: LGTM Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka TJH: Fixed comment --- diff --git a/ftests/container.py b/ftests/container.py index 9a45d195..89920d68 100644 --- a/ftests/container.py +++ b/ftests/container.py @@ -19,7 +19,7 @@ # along with this library; if not, see . # -from run import Run, RunError +from run import Run import consts import os @@ -182,7 +182,7 @@ class Container(object): class ContainerError(Exception): def __init__(self, message, ret): - super(RunError, self).__init__(message) + super(ContainerError, self).__init__(message) def __str__(self): out_str = 'ContainerError:\n\tmessage = {}'.format(self.message)