Fix uninformative exception on File AttributeError

If you tried to access a bad attribute on a file object, you get an
AttributeError with no further information. With this patch, the output
looks like this:

    AttributeError: File('pdf-components.root') has no attribute 'hpdf_ta__x'