diff options
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/toolbox/MiniAEFrame.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Mac/Lib/toolbox/MiniAEFrame.py b/Mac/Lib/toolbox/MiniAEFrame.py index d492d27..549b3ee 100644 --- a/Mac/Lib/toolbox/MiniAEFrame.py +++ b/Mac/Lib/toolbox/MiniAEFrame.py @@ -128,9 +128,16 @@ class AEServer: if _parameters.has_key('----'): _object = _parameters['----'] del _parameters['----'] - rv = apply(_function, (_object,), _parameters) + print 'XXX', (_function, (_object,), _parameters) + try: + rv = apply(_function, (_object,), _parameters) + except TypeError, name: + raise TypeError, ('AppleEvent handler misses formal keyword argument', _function, name) else: - rv = apply(_function, (), _parameters) + try: + rv = apply(_function, (), _parameters) + except TypeError, name: + raise TypeError, ('AppleEvent handler misses formal keyword argument', _function, name) if rv == None: aetools.packevent(_reply, {}) |