Fix and simplify error handling, silencing a compiler warning.
Fix and simplify error handling, silencing a compiler warning.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator