From d877671cc3673b2b2bc6d37aecda426a51ee061d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Mon, 11 Nov 2019 17:17:07 +0100 Subject: [PATCH] Added an exception for backup already in progress Thrown when user tries to run the same backup twice. references QubesOS/qubes-issues#5432 --- qubesadmin/exc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qubesadmin/exc.py b/qubesadmin/exc.py index 4f5fd80..abad4a4 100644 --- a/qubesadmin/exc.py +++ b/qubesadmin/exc.py @@ -111,6 +111,11 @@ class BackupCancelledError(QubesException): '''Thrown at user when backup was manually cancelled''' +class BackupAlreadyRunningError(QubesException): + '''Thrown at user when they try to run the same backup twice at + the same time''' + + class QubesMemoryError(QubesException, MemoryError): '''Cannot start domain, because not enough memory is available'''