fix try except format in hiswrite
fix try except format in hiswrite