Gemini-2.5-pro, IndentationError

Gemini-2.5-pro, often get this error requiring additional call to fix:

IndentationError: expected an indented block after ‘if’ statement on line 0