33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 2d7ec8f21ea70fd0dc9656cd63a761342cefeb8f Mon Sep 17 00:00:00 2001
|
|
From: Roman Prilipskii <rprilipskii@cloudlinux.com>
|
|
Date: Mon, 28 Nov 2022 07:12:43 +0400
|
|
Subject: [PATCH 16/16] Fix super() args for Leapp exception classes
|
|
|
|
---
|
|
leapp/exceptions.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/leapp/exceptions.py b/leapp/exceptions.py
|
|
index d6bbf00..43c5905 100644
|
|
--- a/leapp/exceptions.py
|
|
+++ b/leapp/exceptions.py
|
|
@@ -104,13 +104,13 @@ class CommandDefinitionError(LeappError):
|
|
|
|
class UnknownCommandError(LeappError):
|
|
def __init__(self, command):
|
|
- super().__init__('Unknown command: {}'.format(command))
|
|
+ super(UnknownCommandError, self).__init__('Unknown command: {}'.format(command))
|
|
self.requested = command
|
|
|
|
|
|
class LeappRuntimeError(LeappError):
|
|
def __init__(self, message, exception_info=None):
|
|
- super().__init__(message)
|
|
+ super(LeappRuntimeError, self).__init__(message)
|
|
self.exception_info = exception_info
|
|
|
|
|
|
--
|
|
2.39.0
|
|
|