exc: fix QubesMemoryError constructor
QubesVMError require 'vm' argument.
Fixes 2f3a9847
"exc: Make QubesMemoryError inherit from QubesVMError"
This commit is contained in:
parent
b9a18a819c
commit
1ae6abdff5
@ -162,9 +162,8 @@ class BackupCancelledError(QubesException):
|
|||||||
class QubesMemoryError(QubesVMError, MemoryError):
|
class QubesMemoryError(QubesVMError, MemoryError):
|
||||||
'''Cannot start domain, because not enough memory is available'''
|
'''Cannot start domain, because not enough memory is available'''
|
||||||
def __init__(self, vm, msg=None):
|
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))
|
msg or 'Not enough memory to start domain {!r}'.format(vm.name))
|
||||||
self.vm = vm
|
|
||||||
|
|
||||||
|
|
||||||
class QubesFeatureNotFoundError(QubesException, KeyError):
|
class QubesFeatureNotFoundError(QubesException, KeyError):
|
||||||
|
Loading…
Reference in New Issue
Block a user