]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
container.py: fix argument list ContainerError::__init__
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 23 Feb 2022 06:27:14 +0000 (11:57 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 24 Feb 2022 15:08:53 +0000 (08:08 -0700)
Remove the unused argument ret from the ContainerError constructor. The
only user of the ContainerError doesn't pass or uses the ret value.

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/container.py

index 89920d68acc40b1d3b6d108220a756d5122180bc..f9b899d63ba6ade544495aaa1cc7fd6a473cdf41 100644 (file)
@@ -181,7 +181,7 @@ class Container(object):
 
 
 class ContainerError(Exception):
-    def __init__(self, message, ret):
+    def __init__(self, message):
         super(ContainerError, self).__init__(message)
 
     def __str__(self):