소스 검색

exc: Make QubesMemoryError inherit from QubesVMError

Same as other vm-related errors.
This helps QubesTestCase.cleanup_traceback() cleanup VM reference.
Marek Marczykowski-Górecki 5 년 전
부모
커밋
2f3a984742
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      qubes/exc.py

+ 1 - 1
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__(