davemds pushed a commit to branch master. http://git.enlightenment.org/enlightenment/modules/edgar.git/commit/?id=fd5637b0890f32956daaa56c20fd5b629d11ed1f
commit fd5637b0890f32956daaa56c20fd5b629d11ed1f Author: davemds <[email protected]> Date: Sat Aug 30 17:54:00 2014 +0200 Check the existance of the opts dict before accessing it --- src/e_mod_edgar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/e_mod_edgar.c b/src/e_mod_edgar.c index 415ba09..6f016f8 100644 --- a/src/e_mod_edgar.c +++ b/src/e_mod_edgar.c @@ -266,7 +266,8 @@ edgar_gadget_load(const char *name, const char *path) gadget->edjefile = NULL; // read the gadget options dict - if ((opts = PyObject_GetAttrString(mod, "__gadget_opts__"))) + if (PyObject_HasAttrString(mod, "__gadget_opts__") && + (opts = PyObject_GetAttrString(mod, "__gadget_opts__"))) { attr = PyDict_GetItemString(opts, "popup_on_desktop"); if (attr && PyObject_IsTrue(attr)) --
