rubocop: fixed "Useless assignment to variable"
rubocop: fixed "Do not use :: for method calls"
rubocop: fixed "Avoid rescuing the Exception class"