From 1ae6abdff5870fe96559b4bb1f86cf8d4ecd47bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 30 Oct 2018 01:14:58 +0100 Subject: [PATCH] exc: fix QubesMemoryError constructor QubesVMError require 'vm' argument. Fixes 2f3a9847 "exc: Make QubesMemoryError inherit from QubesVMError" --- qubes/exc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qubes/exc.py b/qubes/exc.py index df31f60e..365d97f0 100644 --- a/qubes/exc.py +++ b/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):