Commit b2364766 authored by Philipp Hörist's avatar Philipp Hörist

[httpupload] Fail on missing python-cryptography

parent d7941e9e
...@@ -277,8 +277,6 @@ class Base(object): ...@@ -277,8 +277,6 @@ class Base(object):
del self.chat_control.handlers[self.keypress_id] del self.chat_control.handlers[self.keypress_id]
def encryption_activated(self): def encryption_activated(self):
if not encryption_available:
return False
jid = jid =
account = self.chat_control.account account = self.chat_control.account
for plugin in gajim.plugin_manager.active_plugins: for plugin in gajim.plugin_manager.active_plugins:
...@@ -299,6 +297,13 @@ class Base(object): ...@@ -299,6 +297,13 @@ class Base(object):
log.debug(e) log.debug(e)
self.encrypted_upload = False self.encrypted_upload = False
if self.encrypted_upload and not encryption_available:
'Please install python-cryptography for encrypted uploads',
if not path_to_file: if not path_to_file:
path_to_file = self.dlg.get_filename() path_to_file = self.dlg.get_filename()
if not path_to_file: if not path_to_file:
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