From 2f3a9847425e1dbbf13ac5172518d6f2d05228c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 24 Oct 2018 14:13:07 +0200 Subject: [PATCH] exc: Make QubesMemoryError inherit from QubesVMError Same as other vm-related errors. This helps QubesTestCase.cleanup_traceback() cleanup VM reference. --- qubes/exc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/exc.py b/qubes/exc.py index 3c7797d1..df31f60e 100644 --- a/qubes/exc.py +++ b/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__(