Fix a couple of pylint errors
Fix DeprecationWarning about Exception message