Author: adrian
Date: Wed Mar  6 16:41:51 2019
New Revision: 355572

URL: http://llvm.org/viewvc/llvm-project?rev=355572&view=rev
Log:
crashlog.py: Catch exception from subprocess.

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

Modified: lldb/trunk/examples/python/crashlog.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/crashlog.py?rev=355572&r1=355571&r2=355572&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Wed Mar  6 16:41:51 2019
@@ -223,7 +223,11 @@ class CrashLog(symbolication.Symbolicato
         """Class that represents a binary images in a darwin crash log"""
         dsymForUUIDBinary = os.path.expanduser('~rc/bin/dsymForUUID')
         if not os.path.exists(dsymForUUIDBinary):
-            dsymForUUIDBinary = subprocess.check_output('which dsymForUUID', 
shell=True)
+            try:
+                dsymForUUIDBinary = subprocess.check_output('which 
dsymForUUID',
+                                                            shell=True)
+            except:
+                dsymForUUIDBinary = ""
 
         dwarfdump_uuid_regex = re.compile(
             'UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*')


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to