exc: fix QubesMemoryError constructor

QubesVMError require 'vm' argument.
Fixes 2f3a9847 "exc: Make QubesMemoryError inherit from QubesVMError"
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-30 01:14:58 +01:00
parent b9a18a819c
commit 1ae6abdff5
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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):