True, but I wanted to be clear that the error is not raised for some other reason (OSError). I think the current assert which checks the message should take care of that.

Thanks.