diff options
-rw-r--r-- | examples/summaries/cocoa/objc_runtime.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/summaries/cocoa/objc_runtime.py b/examples/summaries/cocoa/objc_runtime.py index 996a6fd27..6289e0e26 100644 --- a/examples/summaries/cocoa/objc_runtime.py +++ b/examples/summaries/cocoa/objc_runtime.py @@ -75,7 +75,10 @@ class Utilities: logger = lldb.formatters.Logger.Logger() # assume the only thing that has a Foundation.framework is a Mac # assume anything < Lion does not even exist - mod = target.module['Foundation'] + try: + mod = target.module['Foundation'] + except: + mod = None if mod is None or mod.IsValid() == 0: return None ver = mod.GetVersion() |