`has_errors` appears below in 

```
print('\nModules that raised exception:')
print(has_errors)
```
and so must be defined so that if there are no errors, it still works.