Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
1f2131e8 by wurstsalat at 2021-06-30T16:06:03+02:00
HTTPUpload: Raise FileError if path is not accessible

Fixes #10560

- - - - -


1 changed file:

- gajim/common/modules/httpupload.py


Changes:

=====================================
gajim/common/modules/httpupload.py
=====================================
@@ -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)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1f2131e8d85bc63580e4b2a146683d024d0bcdde

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1f2131e8d85bc63580e4b2a146683d024d0bcdde
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to