summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/function.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py
index 83666ab9..cecf7993 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1800,7 +1800,11 @@ class Function:
idx = core.BNGetLowLevelILForInstruction(self.handle, arch.handle, addr)
- llil = self.llil
+ try:
+ llil = self.llil
+ except ILException:
+ return None
+
if idx == len(llil):
return None