diff options
author | Serge Guelton <sguelton@redhat.com> | 2019-03-21 14:39:55 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@redhat.com> | 2019-03-21 14:39:55 +0000 |
commit | 3577da766719b9341783558d1472dd94ce5abe0d (patch) | |
tree | 3f9f9310a7baf7f4b8ddec9acd95bf11175146a8 /lldb/examples/python/crashlog.py | |
parent | f0f01051a16da99b8e05ab16d0ccfcd54ba6a269 (diff) | |
download | llvm-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-x | lldb/examples/python/crashlog.py | 2 |
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] |