~vds/desktopcouch/desktopcouch_couchdb_0_7

« back to all changes in this revision

Viewing changes to desktopcouch/pair/couchdb_pairing/dbus_io.py

Don't crash when we're trying to stop announcing on DBus and the DBus server won't talk to us. It's not a big error, since it probably won't talk to anyone else either. (LP: #563738, #464071)

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    
90
90
    def unpublish(self):
91
91
        """End the advertisement."""
92
 
        self.group.Reset()
93
 
        self.logging.info("ending advertising %s on port %d",
94
 
                self.stype, self.port)
 
92
        try:
 
93
            self.logging.info("ending advertising %s on port %d",
 
94
                    self.stype, self.port)
 
95
            self.group.Reset()
 
96
        except DBusError, e:
 
97
            self.logging.warn("Couldn't reset DBus at shutdown. %s" % (e,))
95
98
        self.group = None
96
99
 
97
100
    def die(self):