errors : Derive Errors from Exception
According to the docs user defined Exceptions should derive from Exception not BaseException.
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
# Copyright (C) 2025-2026 Paul Retourné
|
# Copyright (C) 2025-2026 Paul Retourné
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
class RemoteMountedError(BaseException):
|
class RemoteMountedError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class InvalidMountError(BaseException):
|
class InvalidMountError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class UnknownSSHError(BaseException):
|
class UnknownSSHError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class FatalSyncError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user