[libpeas] Don't abort if an error occurred while getting a Python plugin extension
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Don't abort if an error occurred while getting a Python plugin extension
- Date: Thu, 1 Jul 2010 21:34:57 +0000 (UTC)
commit e8fcf691f13e0b8a88183a2676eb70ab94f3c018
Author: Garrett Regier <alias301 gmail com>
Date: Thu Jul 1 14:27:08 2010 -0700
Don't abort if an error occurred while getting a Python plugin extension
loaders/python/peas-plugin-loader-python.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/loaders/python/peas-plugin-loader-python.c b/loaders/python/peas-plugin-loader-python.c
index 7e2cdf1..0646a6d 100644
--- a/loaders/python/peas-plugin-loader-python.c
+++ b/loaders/python/peas-plugin-loader-python.c
@@ -172,8 +172,8 @@ peas_plugin_loader_python_get_extension (PeasPluginLoader *loader,
if (pyobject == NULL)
{
pyg_gil_state_release (state);
- g_error ("Could not create instance for '%s'",
- peas_plugin_info_get_name (info));
+ g_warning ("Could not create instance for '%s'",
+ peas_plugin_info_get_name (info));
return NULL;
}
@@ -184,8 +184,8 @@ peas_plugin_loader_python_get_extension (PeasPluginLoader *loader,
{
Py_DECREF (pyobject);
pyg_gil_state_release (state);
- g_error ("Could not create instance for '%s': GObject already initialized",
- peas_plugin_info_get_name (info));
+ g_warning ("Could not create instance for '%s': GObject already initialized",
+ peas_plugin_info_get_name (info));
return NULL;
}
@@ -196,8 +196,8 @@ peas_plugin_loader_python_get_extension (PeasPluginLoader *loader,
{
Py_DECREF (pyobject);
pyg_gil_state_release (state);
- g_error ("Could not create '%s' instance for '%s': GObject not constructed",
- g_type_name (exten_type), peas_plugin_info_get_name (info));
+ g_warning ("Could not create '%s' instance for '%s': GObject not constructed",
+ g_type_name (exten_type), peas_plugin_info_get_name (info));
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]