diff options
-rwxr-xr-x | src/service-discovery-applet.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in index 08fb577..19cecc6 100755 --- a/src/service-discovery-applet.in +++ b/src/service-discovery-applet.in @@ -271,7 +271,10 @@ class ServiceDiscoveryApplet(gnomeapplet.Applet): txts = avahi.txt_array_to_string_array(txt) txts = sdapplet.pluginutils.pair_to_dict(txts) - self.plugin.plugins[type][0].connect(self.use_host_names, name, type, host, address, port, txts) + try: + self.plugin.plugins[type][0].connect(self.use_host_names, name, type, host, address, port, txts) + except KeyError,e: + error_msg("No plugin to handle %s" % type) def print_error(self, err): # FIXME we should use notifications |