diff options
author | nags <nags@nags-desktop.(none)> | 2009-11-14 20:39:41 -0800 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2009-11-14 20:39:41 -0800 |
commit | 040c544f9d551e78f4c3bad460557e7f78e62a98 (patch) | |
tree | b3e119cbf12b5c418a15be0287cd4228656c44db | |
parent | 88d295fb637a19093822fda7b0b2cacc1b5781cc (diff) |
Proceed if window name exist in list
-rw-r--r-- | python/ldtp.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/ldtp.py b/python/ldtp.py index cd6c0d3..4063121 100644 --- a/python/ldtp.py +++ b/python/ldtp.py @@ -357,7 +357,12 @@ def invokecallback (windowTitle, *args): if _ldtpDebug: print _responseStatus, _responseData # Get the callback function - callback = _callbackFunctions.get (_responseData [1])[0] + callback = _callbackFunctions.get(_responseData [1]) + if callback: + callback = callback[0] + else: + if _ldtpDebug: + print 'Window not registered with LDTP window format' # Check whether its callable if callable(callback): # If callable then call the function |