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 | |
| parent | f0f01051a16da99b8e05ab16d0ccfcd54ba6a269 (diff) | |
| download | bcm5719-llvm-3577da766719b9341783558d1472dd94ce5abe0d.tar.gz bcm5719-llvm-3577da766719b9341783558d1472dd94ce5abe0d.zip | |
Portable exception value access across Python 2 / Python 3
Differential Revision: https://reviews.llvm.org/D59583
llvm-svn: 356670
Diffstat (limited to 'lldb/examples')
| -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 627b5bf0429..bb7625be06c 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] |

