FIXUP: rename to QubesQrexecFailed instead

This commit is contained in:
deeplow 2023-10-02 12:06:18 +01:00
parent eb488b16c5
commit dabdf6c286
No known key found for this signature in database
GPG key ID: 577982871529A52A
2 changed files with 2 additions and 2 deletions

View file

@ -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. "

View file

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