Remove pylint warning.
Avoid pyling warning.
Avoid bare exception.