tiny fix: separate out statements in a try/except