Fix thing with inspect on non-python function for libnotify

This commit is contained in:
Kiooeht 2013-02-25 21:52:38 -08:00
parent 9a069bdc10
commit e16965e771

View file

@ -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