diff options
author | lovetox <philipp@hoerist.com> | 2020-06-25 23:43:45 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-06-29 23:27:40 +0300 |
commit | 36293b6ea61db089cccf49eb5731f10eda363b75 (patch) | |
tree | bf9712ab222e8436df045c7412ad0666c5df57da | |
parent | a62672736a5459abf9bd2004a9ece86f4bc741be (diff) |
[plugin_installer] Check before updating the available page
Fixes #508
-rw-r--r-- | plugin_installer/plugin_installer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index b79fe8c..28712e2 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -211,7 +211,9 @@ class PluginInstaller(GajimPlugin): activated = app.plugin_manager.update_plugins( replace=False, activate=True, plugin_name=plugin.short_name) if activated: - self._available_page.update_plugin(plugin) + if self._available_page is not None: + self._available_page.update_plugin(plugin) + else: self._needs_restart = True log.info('Plugin %s needs restart', plugin.name) |