From e16965e77123f6f4bbccfbd5bebf9fba20e7ae5d Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Mon, 25 Feb 2013 21:52:38 -0800 Subject: [PATCH] Fix thing with inspect on non-python function for libnotify --- toast.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toast.py b/toast.py index 2bcec80..7691332 100644 --- a/toast.py +++ b/toast.py @@ -74,7 +74,11 @@ class ToastMachine(object): t = None for (k,v) in self.machine.types.iteritems(): if self.machine.type == k: - args = inspect.getargspec(v.__init__).args + try: + args = inspect.getargspec(v.__init__).args + except: + args = [] + extras = {} if 'parent' in args: extras['parent'] = self.machine.parent