diff --git a/src/interface.py b/src/interface.py index b5e1d40d3..f9b6ce2aa 100644 --- a/src/interface.py +++ b/src/interface.py @@ -848,7 +848,7 @@ class DelugeGTK: # Handle the events try: - events=self.manager.handle_events() + events = self.manager.handle_events() except core.SystemError, e: print "SystemError", e dialogs.show_popup_warning(self.window, _("You cannot move torrent to a different partition. Please fix your preferences")) diff --git a/src/plugins.py b/src/plugins.py index 785622ed9..bb832ca45 100644 --- a/src/plugins.py +++ b/src/plugins.py @@ -93,14 +93,14 @@ class PluginManager: def configure_plugin(self, name): self.enabled_plugins[name].configure() - def update_active_plugins(self,events): + def update_active_plugins(self, events): for name in self.enabled_plugins.keys(): plugin = self.enabled_plugins[name] if 'update' in dir(plugin): plugin.update() - #having two methods for not breaking compatibility + if 'notify' in dir(plugin): - plugin.notify(events) + plugin.notify(events) def shutdown_all_plugins(self): for name in self.enabled_plugins.keys():