fixed bug in reading profiles

IOError was previously caught by bare exception; IOError raised anytime
a new profile is created and not updated immediately (refresh makes
server_version() fail in this circumstance).