I just noticed that we can use the `else` of try here to simplify the code.