Circumvent AstropyLogger

Avoids an error that prevents people from reading files that generate warnings,
triggering an ImportError