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
nekk
gajim-plugins
Commits
34f965e1
Commit
34f965e1
authored
May 02, 2021
by
Philipp Hörist
Browse files
[omemo] Don’t fail on missing dependencys
parent
519c81bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
omemo/plugin.py
View file @
34f965e1
...
...
@@ -34,12 +34,6 @@ from gajim.plugins import GajimPlugin
from
gajim.plugins.plugins_i18n
import
_
from
gajim.groupchat_control
import
GroupchatControl
from
omemo
import
file_crypto
from
omemo.gtk.key
import
KeyDialog
from
omemo.gtk.config
import
OMEMOConfigDialog
from
omemo.backend.aes
import
aes_encrypt_file
AXOLOTL_MISSING
=
'You are missing Python3-Axolotl or use an outdated version'
PROTOBUF_MISSING
=
"OMEMO can't import Google Protobuf, you can find help in "
\
"the GitLab Wiki"
...
...
@@ -68,6 +62,10 @@ except Exception as error:
if
not
ERROR_MSG
:
try
:
from
omemo.modules
import
omemo
from
omemo
import
file_crypto
from
omemo.gtk.key
import
KeyDialog
from
omemo.gtk.config
import
OMEMOConfigDialog
from
omemo.backend.aes
import
aes_encrypt_file
except
Exception
as
error
:
log
.
error
(
error
)
ERROR_MSG
=
'Error: %s'
%
error
...
...
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