aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@redhat.com>2019-03-21 14:39:55 +0000
committerSerge Guelton <sguelton@redhat.com>2019-03-21 14:39:55 +0000
commit3577da766719b9341783558d1472dd94ce5abe0d (patch)
tree3f9f9310a7baf7f4b8ddec9acd95bf11175146a8 /lldb/examples/python/crashlog.py
parentf0f01051a16da99b8e05ab16d0ccfcd54ba6a269 (diff)
downloadllvm-3577da766719b9341783558d1472dd94ce5abe0d.zip
llvm-3577da766719b9341783558d1472dd94ce5abe0d.tar.gz
llvm-3577da766719b9341783558d1472dd94ce5abe0d.tar.bz2
Portable exception value access across Python 2 / Python 3
Differential Revision: https://reviews.llvm.org/D59583 llvm-svn: 356670
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 627b5bf0..bb7625b 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -284,7 +284,7 @@ class CrashLog(symbolication.Symbolicator):
try:
plist_root = plistlib.readPlistFromString(s)
except:
- print(("Got exception: ", sys.exc_value, " handling dsymForUUID output: \n", s))
+ print(("Got exception: ", sys.exc_info()[1], " handling dsymForUUID output: \n", s))
raise
if plist_root:
plist = plist_root[uuid_str]