Fix unspecified except: blocks

Those are bad since they catch every exception out there, including
KeyboardInterrupt and the like.

The first block is entirely removed as the two function call are not
supposed to raise anything given legit parameters.
The second should, according to the method description, only catch
KeyError to change them into AttributeError.