From 7fae1b154acdad66550ca6fed34a40431a5842e5 Mon Sep 17 00:00:00 2001 From: furtest Date: Fri, 30 Jan 2026 17:39:28 +0100 Subject: [PATCH] errors : Derive Errors from Exception According to the docs user defined Exceptions should derive from Exception not BaseException. --- src/unisync/errors.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/unisync/errors.py b/src/unisync/errors.py index 988d4d3..d52a724 100644 --- a/src/unisync/errors.py +++ b/src/unisync/errors.py @@ -1,11 +1,14 @@ # Copyright (C) 2025-2026 Paul Retourné # SPDX-License-Identifier: GPL-3.0-or-later -class RemoteMountedError(BaseException): +class RemoteMountedError(Exception): pass -class InvalidMountError(BaseException): +class InvalidMountError(Exception): pass -class UnknownSSHError(BaseException): +class UnknownSSHError(Exception): + pass + +class FatalSyncError(Exception): pass