Fix flake8. Change StandardError to RuntimeError