Prechádzať zdrojové kódy

exc: fix QubesMemoryError constructor

QubesVMError require 'vm' argument.
Fixes 2f3a9847 "exc: Make QubesMemoryError inherit from QubesVMError"
Marek Marczykowski-Górecki 5 rokov pred
rodič
commit
1ae6abdff5
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      qubes/exc.py

+ 1 - 2
qubes/exc.py

@@ -162,9 +162,8 @@ class BackupCancelledError(QubesException):
 class QubesMemoryError(QubesVMError, MemoryError):
     '''Cannot start domain, because not enough memory is available'''
     def __init__(self, vm, msg=None):
-        super(QubesMemoryError, self).__init__(
+        super(QubesMemoryError, self).__init__(vm,
             msg or 'Not enough memory to start domain {!r}'.format(vm.name))
-        self.vm = vm
 
 
 class QubesFeatureNotFoundError(QubesException, KeyError):