From dabdf6c28682920d9f9630aeaa459188b959e235 Mon Sep 17 00:00:00 2001 From: deeplow Date: Mon, 2 Oct 2023 12:06:18 +0100 Subject: [PATCH] FIXUP: rename to QubesQrexecFailed instead --- dangerzone/conversion/errors.py | 2 +- tests/isolation_provider/test_qubes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerzone/conversion/errors.py b/dangerzone/conversion/errors.py index 694f437..2aeb38d 100644 --- a/dangerzone/conversion/errors.py +++ b/dangerzone/conversion/errors.py @@ -24,7 +24,7 @@ class ConversionException(Exception): return subclasses -class QubesConversionStartFailed(ConversionException): +class QubesQrexecFailed(ConversionException): error_code = 126 # No ERROR_SHIFT since this is a qrexec error error_message = ( "Could not start a disposable qube for the file conversion. " diff --git a/tests/isolation_provider/test_qubes.py b/tests/isolation_provider/test_qubes.py index f8f6172..78ce9e2 100644 --- a/tests/isolation_provider/test_qubes.py +++ b/tests/isolation_provider/test_qubes.py @@ -83,6 +83,6 @@ class TestQubes(IsolationProviderTest): monkeypatch.setattr(provider, "qrexec_subprocess", qrexec_subprocess) - with pytest.raises(errors.QubesNotEnoughRAMError) as e: + with pytest.raises(errors.QubesQrexecFailed) as e: doc = Document(sample_doc) provider._convert(doc, ocr_lang=None)