Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
f79e9616
Commit
f79e9616
authored
Jul 14, 2021
by
Daniel Brötzmann
Browse files
[omemo] Set transfer error correctly
parent
67cb96d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/file_crypto.py
View file @
f79e9616
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment