fix pylint complaining about only one hard return
Merge pull request #8423 from UtahDave/develop

fix pylint complaining about only one hard return