If this is the only place that you are using `isInt`, remove that functionality and just place the `try/except` here.