Author: Vincent Prat <vivi@debian.org>
Description: Fix ErfaWarning import to ensure compatibility with astropy 4.2
Forwarded: not-needed
--- a/astroquery/mpc/core.py
+++ b/astroquery/mpc/core.py
@@ -11,7 +11,11 @@
 from astropy.table import Table, QTable, Column
 import astropy.units as u
 from astropy.coordinates import EarthLocation, Angle, SkyCoord
-from astropy._erfa.core import ErfaWarning
+try:
+    from astropy.utils.exceptions import ErfaWarning
+except ImportError:
+    # DEPRECATED: remove eventually, but needed in July 2020
+    from astropy._erfa.core import ErfaWarning
 
 from ..query import BaseQuery
 from . import conf
