Explorar o código

exc: Make QubesMemoryError inherit from QubesVMError

Same as other vm-related errors.
This helps QubesTestCase.cleanup_traceback() cleanup VM reference.
Marek Marczykowski-Górecki %!s(int64=5) %!d(string=hai) anos
pai
achega
2f3a984742
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      qubes/exc.py

+ 1 - 1
qubes/exc.py

@@ -159,7 +159,7 @@ class BackupCancelledError(QubesException):
             msg or 'Backup cancelled')
 
 
-class QubesMemoryError(QubesException, MemoryError):
+class QubesMemoryError(QubesVMError, MemoryError):
     '''Cannot start domain, because not enough memory is available'''
     def __init__(self, vm, msg=None):
         super(QubesMemoryError, self).__init__(