kastiglione added inline comments.
================ Comment at: lldb/examples/python/crashlog.py:472-473 self.crashlog.process_identifier = json_data['procName'] - self.crashlog.process_path = json_data['procPath'] + if 'procPath' in json_data: + self.crashlog.process_path = json_data['procPath'] ---------------- another way of doing this is: ``` self.crashlog.process_path = json_data.get('procPath') ``` `get()` returns `None` if the key doesn't exist. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131033/new/ https://reviews.llvm.org/D131033 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits