Browse Source

Merge remote-tracking branch 'origin/pr/115'

* origin/pr/115:
  Added an exception for backup already in progress
Marek Marczykowski-Górecki 4 years ago
parent
commit
6444d31af7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      qubesadmin/exc.py

+ 5 - 0
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'''