[postr] Fixed exception after quit

commit 2ed8dd1e524354729ae156abde37b92fc5b3a5f2
Author: GermÃn Poo-CaamaÃo <gpoo gnome org>
Date:   Thu Oct 4 00:32:31 2012 -0700

    Fixed exception after quit
    This bug was silly.  It caused an exception when python was
    cleaning up twisted before closing.  It seems there was a callback
    in the stack that was trying to be applied to an object already
    released.  This happened only when there were callbacks on
    callbacks in twisted.
    It seems that modules imported insude functions or methods
    are cleaned up differently than when they are imported at the
    beginning of a module.  Or maybe is a bug in either twisted or
    bsddb3 that mess the garbage collector up.
    Signed-off-by: GermÃn Poo-CaamaÃo <gpoo gnome org>

 src/util.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/util.py b/src/util.py
index bf58995..5974ae1 100644
--- a/src/util.py
+++ b/src/util.py
@@ -17,7 +17,7 @@
 import os
 from gi.repository import Gtk, GdkPixbuf
+import bsddb3
 def greek(size):
     """Take a quantity (like 1873627) and display it in a human-readable rounded
@@ -73,7 +73,6 @@ def get_buddyicon(flickr, data, size=48):
     """Lookup the buddyicon from the data in @data using @flickr and resize it
     to @size pixels."""
     from twisted.web.client import getPage
-    import bsddb3
     global __buddy_cache
     if __buddy_cache is None:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]