Skip to content

Commit 8612b59

Browse files
committed
Fix type
Signed-off-by: Arthur Chan <[email protected]>
1 parent c2c288e commit 8612b59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

data_prep/project_context/context_introspector.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ def _get_function_implementation(self) -> str:
165165
def _get_macro_block(self) -> list[str]:
166166
"""Queries FI to check macro block around this function."""
167167
project = self._benchmark.project
168+
if not self._benchmark.function_dict:
169+
return []
170+
168171
source = self._benchmark.function_dict.get('function_filename', '')
169172
start = self._benchmark.function_dict.get('source_line_begin', 0)
170173
end = self._benchmark.function_dict.get('source_end_begin', 99999)

0 commit comments

Comments
 (0)