Is this necessary for the fix? If not, it should not be part of this commit, it can be part of another commit in the same pull request. Also, you don't need "str(e)", plain "e" would do.