diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2016-12-27 17:26:32 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2016-12-27 17:26:32 +0300 |
commit | 6004a632b4b90430d7840f7c42b66fa5ac43bb86 (patch) | |
tree | 2a67a3fc02ecb529df41654882c2c10a537d506a | |
parent | 1b49da550552da3a3305c4ef97c66157a45c6ce0 (diff) |
[plugin_installer] Fix automatic update check
-rw-r--r-- | plugin_installer/plugin_installer.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index dc491ab..7c1bcd2 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -123,7 +123,8 @@ class PluginInstaller(GajimPlugin): config.readfp(zip_file.open(filename)) if not config.has_section('info'): continue - plugins.add(config) + plugins.append(config) + return plugins def retrieve_path(self, directory, fname): server = self.config['http_server'] @@ -167,8 +168,8 @@ class PluginInstaller(GajimPlugin): if remote > local: to_update.append(config.get('info', 'name')) gobject.idle_add(self.warn_update, to_update) - except Exception, e: - log.debug('Ftp error when check updates: %s' % str(e)) + except Exception as e: + log.exception('Ftp error when check for updates: ') ftp = Ftp(self) ftp.run = _run ftp.start() |