Comment 11 for bug 2041407

Revision history for this message
Mateus Rodrigues de Morais (mateus-morais) wrote :

That makes sense. Since the fallback attribute of getattr isn't lazily loaded, we'd get the inverse of the error we're getting right now.

I've submitted a Merge Proposal using hasattr to safely fallback to readfp when read_file isn't available. This should maintain compatibility and avoid any AttributeErrors.