!fixup use assert.throws instead of try/catch

/to @bnoordhuis