Not catching any exceptions and removing the `nothrow` attribute seems like the better choice.
Then the function is nothrow iff a hash for the key and the value can be computed with nothrow.