[pygobject/gsoc2009: 140/160] Clear the error since we try another way afterward



commit 5409927d15cda6c5323ca6941c2c739700ae47ba
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Wed Aug 12 15:55:26 2009 +0200

    Clear the error since we try another way afterward

 gobject/pygobject.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gobject/pygobject.c b/gobject/pygobject.c
index 2e47f53..208e189 100644
--- a/gobject/pygobject.c
+++ b/gobject/pygobject.c
@@ -901,6 +901,8 @@ pygobject_lookup_class(GType gtype)
             g_base_info_unref(info);
             if (py_type)
                 return py_type;
+            else
+                PyErr_Clear();
         }
 
     }



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