fixed indentation issue and added a missing import
@@ -11,6 +11,7 @@ import astropy.coordinates as coord
from astroquery.utils import commons, async_to_sync
from astroquery.utils.class_or_instance import class_or_instance
+from astroquery.exceptions import InvalidQueryError
from astroquery.mast import utils
from astroquery.mast.core import MastQueryWithLogin
