Commit 1f2131e8 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

HTTPUpload: Raise FileError if path is not accessible

Fixes #10560
parent c4d4b013
......@@ -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):
return None
raise FileError(_('Could not access file'))
invalid_file = False
stat = os.stat(path)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment