pybank r65 - trunk/bank
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: pybank r65 - trunk/bank
- Date: Thu, 21 Aug 2008 06:48:18 +0000 (UTC)
Author: johan
Date: Thu Aug 21 06:48:18 2008
New Revision: 65
URL: http://svn.gnome.org/viewvc/pybank?rev=65&view=rev
Log:
Rewrap and do not print error when typelib cannot be found
Modified:
trunk/bank/bank-repository.c
Modified: trunk/bank/bank-repository.c
==============================================================================
--- trunk/bank/bank-repository.c (original)
+++ trunk/bank/bank-repository.c Thu Aug 21 06:48:18 2008
@@ -54,22 +54,24 @@
gchar *filename;
const gchar *namespace;
GError *error = NULL;
-
+
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "s:GIRepository.require",
- kwlist, &filename))
+ "s:GIRepository.require",
+ kwlist, &filename))
return NULL;
- namespace = g_irepository_require (self->repo, filename, &error);
+ namespace = g_irepository_require(self->repo, filename, &error);
if (error) {
+#if 0
g_print ("ERROR: %s (FIXME: raise GError exception)\n",
error->message);
g_clear_error (&error);
+#endif
Py_INCREF(Py_None);
return Py_None;
}
- return PyString_FromString (namespace);
+ return PyString_FromString(namespace);
}
static PyObject *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]