Indentation is inconsistent here (rest of code uses 4 spaces, but this block only uses 2 spaces).