It seems a little funky to have a try/except solely for our test cases.
Are there any better options?