If you prefer a try/except here, sure. I tried to avoid try/except where possible.