Fix TypeError on failure of linting

This fixes #19.
Prepare 0.5.2 release