[PATCH] D59583: python2/3 compat: exceptions

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 07:38:53 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL356670: Portable exception value access across Python 2 / Python 3 (authored by serge_sans_paille, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D59583?vs=191445&id=191688#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59583/new/

https://reviews.llvm.org/D59583

Files:
  lldb/trunk/examples/python/crashlog.py


Index: lldb/trunk/examples/python/crashlog.py
===================================================================
--- lldb/trunk/examples/python/crashlog.py
+++ lldb/trunk/examples/python/crashlog.py
@@ -284,7 +284,7 @@
                     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]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59583.191688.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190321/c8923895/attachment.bin>


More information about the llvm-commits mailing list