Added an exception for backup already in progress

Thrown when user tries to run the same backup twice.

references QubesOS/qubes-issues#5432
This commit is contained in:
Marta Marczykowska-Górecka 2019-11-11 17:17:07 +01:00
parent 6b5e695f15
commit d877671cc3
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -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'''