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
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-04-05 21:27:45 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-04-05 21:27:45 +0300
commitb23647666ec98b1dfc3fce57f4b3a3ea7b17e59b (patch)
tree7e535ad0f3025883dd283386df87316339bc14fa /httpupload
parentd7941e9ef470cb3172db6ed0a7def2debb2b9c3d (diff)
[httpupload] Fail on missing python-cryptography
Diffstat (limited to 'httpupload')
-rw-r--r--httpupload/httpupload.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/httpupload/httpupload.py b/httpupload/httpupload.py
index 34d8233..fbe7836 100644
--- a/httpupload/httpupload.py
+++ b/httpupload/httpupload.py
@@ -277,8 +277,6 @@ class Base(object):
del self.chat_control.handlers[self.keypress_id]
def encryption_activated(self):
- if not encryption_available:
- return False
jid = self.chat_control.contact.jid
account = self.chat_control.account
for plugin in gajim.plugin_manager.active_plugins:
@@ -299,6 +297,13 @@ class Base(object):
log.debug(e)
self.encrypted_upload = False
+ if self.encrypted_upload and not encryption_available:
+ ErrorDialog(
+ _('Error'),
+ 'Please install python-cryptography for encrypted uploads',
+ transient_for=self.chat_control.parent_win.window)
+ return
+
if not path_to_file:
path_to_file = self.dlg.get_filename()
if not path_to_file: