[orca] Added sanity check to traceit.



commit 18587357363a47dfa809c00dac95590eca021123
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Thu Aug 11 16:11:36 2011 -0400

    Added sanity check to traceit.

 src/orca/debug.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/debug.py b/src/orca/debug.py
index ac700ab..e3c7af7 100644
--- a/src/orca/debug.py
+++ b/src/orca/debug.py
@@ -396,7 +396,7 @@ def traceit(frame, event, arg):
             output += '\n  ARG %s=%s' % (key, values[i])
 
     lineElements = line.strip().split()
-    if lineElements[0] == 'return':
+    if lineElements and lineElements[0] == 'return':
         if event == 'line':
             return traceit
         output = '%s (rv: %s)' % (output, arg)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]