replace 'IOException' with 'IOError'