diff options
Diffstat (limited to 'pkgdistcache-client')
-rwxr-xr-x | pkgdistcache-client | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgdistcache-client b/pkgdistcache-client index 744f4bcb713c..75846eed0b90 100755 --- a/pkgdistcache-client +++ b/pkgdistcache-client @@ -99,8 +99,9 @@ class AvahiBrowser(object): s = self.server.ResolveService(interface, protocol, name, stype, domain, avahi.PROTO_UNSPEC, dbus.UInt32(0)) service = Service(str(s[3]), str(s[2]), str(s[7]), int(s[8])) # service name, host, ip, port self.services.append(service) - except TimeoutError: - printwarn("Timeout error during service resolution!") + except dbus.DBusException as ex: + # Mainly expect to see org.freedesktop.Avahi.TimeoutError: Timeout reached + printwarn(ex) def all_for_now(self): self.loop.quit() |