Resolved. The file seems to be a mix of tabs and spaces, I converted this specific line to tabs since the code around it is tabs.