~gmb/gwibber/use-dates-for-indexes

« back to all changes in this revision

Viewing changes to gwibber/client.py

  • Committer: Graham Binns
  • Date: 2009-02-09 00:31:58 UTC
  • Revision ID: graham@grahambinns.com-20090209003158-kcntpi0bs62nkcf1
Added a try:except:else:finally block to GwibberClient.show_notification_bubbles(). It hasn't solved the problem but it's useful for debugging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
"""
7
7
 
 
8
import dbus.exceptions
8
9
import time, os, threading, logging, mx.DateTime, hashlib
9
10
import gtk, gtk.glade, gobject, table, functools, traceback
10
11
import microblog, gwui, config, gintegration, configui
870
871
        message.first_seen and gintegration.can_notify and \
871
872
          message.username != message.sender_nick:
872
873
        gtk.gdk.threads_enter()
 
874
 
873
875
        body = microblog.support.linkify(microblog.support.xml_escape(message.text))
874
 
        n = gintegration.notify(message.sender, body,
875
 
          hasattr(message, "image_path") and message.image_path or '', ["reply", "Reply"])
876
 
        gtk.gdk.threads_leave()
877
876
 
878
 
        self.notification_bubbles[n] = message
 
877
        try:
 
878
          n = gintegration.notify(
 
879
            message.sender, body,
 
880
            hasattr(
 
881
              message, "image_path")
 
882
              and message.image_path or '', ["reply", "Reply"])
 
883
        except dbus.exceptions.DBusException, error:
 
884
          logging.debug("DBus raised an exception: %s" % error)
 
885
        else:
 
886
          self.notification_bubbles[n] = message
 
887
        finally:
 
888
          gtk.gdk.threads_leave()
879
889
 
880
890
  def flag_duplicates(self, data):
881
891
    seen = []