diff options
Diffstat (limited to 'poezio/connection.py')
-rw-r--r-- | poezio/connection.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/poezio/connection.py b/poezio/connection.py index 61837ecb..3ccfa8ce 100644 --- a/poezio/connection.py +++ b/poezio/connection.py @@ -174,6 +174,14 @@ class Connection(slixmpp.ClientXMPP): self.register_plugin('xep_0319') self.register_plugin('xep_0334') self.register_plugin('xep_0352') + try: + self.register_plugin('xep_0363') + except SyntaxError: + log.error('Failed to load HTTP File Upload plugin, it can only be ' + 'used on Python 3.5+') + except slixmpp.plugins.base.PluginNotFound: + log.error('Failed to load HTTP File Upload plugin, it can only be ' + 'used with aiohttp installed') self.register_plugin('xep_0380') self.init_plugins() |