Why on earth was that else section not indented?

Furthermore, how did the tests pass??!