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
Georg Pfuetzenreuter
gajim
Commits
1f2131e8
Commit
1f2131e8
authored
Jun 30, 2021
by
Daniel Brötzmann
Browse files
HTTPUpload: Raise FileError if path is not accessible
Fixes #10560
parent
c4d4b013
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/common/modules/httpupload.py
View file @
1f2131e8
...
...
@@ -88,7 +88,7 @@ def pass_disco(self, info):
def
make_transfer
(
self
,
path
,
encryption
,
contact
,
groupchat
=
False
):
if
not
path
or
not
os
.
path
.
exists
(
path
):
r
eturn
None
r
aise
FileError
(
_
(
'Could not access file'
))
invalid_file
=
False
stat
=
os
.
stat
(
path
)
...
...
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