From 417ae3d69ec121f92ce6a883586c8d33ea39df61 Mon Sep 17 00:00:00 2001 From: James Adams Date: Fri, 2 Aug 2024 14:55:43 +0100 Subject: [PATCH] Call __init__ from base Exception class in custom exceptions --- mrepo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mrepo.py b/mrepo.py index f83af40..a004739 100755 --- a/mrepo.py +++ b/mrepo.py @@ -656,6 +656,7 @@ def repomd(self): class MrepoMirrorException(Exception): def __init__(self, value): self.value = value + Exception.__init__(self) def __str__(self): return repr(self.value) @@ -664,6 +665,7 @@ def __str__(self): class MrepoGenerateException(Exception): def __init__(self, value): self.value = value + Exception.__init__(self) def __str__(self): return repr(self.value)