Author: asterix Date: 2007-12-15 13:15:10 +0100 (Sat, 15 Dec 2007) New Revision: 9149
Modified: trunk/src/common/connection_handlers.py Log: don't crash when dbus is not supported
Modified: trunk/src/common/connection_handlers.py =================================================================== --- trunk/src/common/connection_handlers.py 2007-12-15 12:10:25 UTC (rev 9148) +++ trunk/src/common/connection_handlers.py 2007-12-15 12:15:10 UTC (rev 9149) @@ -835,11 +835,12 @@ if identity['category'] == 'pubsub' and identity['type'] == \ 'pep': self.pep_supported = True - listener = MusicTrackListener.get() - track = listener.get_playing_track() - if gajim.config.get('publish_tune'): - gajim.interface.roster._music_track_changed(listener, - track, self.name) + if dbus_support.supported: + listener = MusicTrackListener.get() + track = listener.get_playing_track() + if gajim.config.get('publish_tune'): + gajim.interface.roster._music_track_changed(listener, + track, self.name) break if features.__contains__(common.xmpp.NS_BYTESTREAM): gajim.proxy65_manager.resolve(jid, self.connection, self.name)