Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/omemo
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2021-07-14 16:45:25 +0300
committerwurstsalat <mailtrash@posteo.de>2021-07-14 16:45:25 +0300
commitf79e961615944dccbd9148fc2fc5610cdbb0b962 (patch)
treea3a974d8eaf0bcbddaf96d799bc80fa6ef69d117 /omemo
parent67cb96d5e0f596e82a1df9ec4a2ca20395dd9663 (diff)
[omemo] Set transfer error correctly
Diffstat (limited to 'omemo')
-rw-r--r--omemo/file_crypto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/omemo/file_crypto.py b/omemo/file_crypto.py
index 56db71c..62c1837 100644
--- a/omemo/file_crypto.py
+++ b/omemo/file_crypto.py
@@ -124,7 +124,8 @@ class FileDecryption:
if message.status_code != Soup.Status.OK:
log.warning('Download failed: %s', transfer.request_uri)
log.warning(Soup.Status.get_phrase(message.status_code))
- transfer.set_error('http-error', 'Download failed: %s', transfer.request_uri)
+ error_text = _('Download failed: %s') % transfer.request_uri
+ transfer.set_error('http-error', error_text)
return
data = message.props.response_body_data.get_data()