This who block should probably be arranged in some kind of `try/except/else` structure.