Skip to content

Commit 39987b4

Browse files
committed
oops, forgot to save on last one - need to rebase that
1 parent 49169b7 commit 39987b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

astroquery/simbad/core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from astroquery.query import BaseQuery
2121
from astroquery.utils import commons, async_to_sync
22-
from astroquery.exceptions import TableParseError, LargeQueryWarning
22+
from astroquery.exceptions import TableParseError, LargeQueryWarning, BadRowWarning
2323
from . import conf
2424

2525

@@ -135,7 +135,9 @@ def __warn(self):
135135
warnings.warn("Warning: The script line number %i raised "
136136
"an error (recorded in the `errors` attribute "
137137
"of the result table): %s" %
138-
(error.line, error.msg))
138+
(error.line, error.msg),
139+
BadRowWarning
140+
)
139141

140142
def __get_section(self, section_name):
141143
if section_name in self.__indexes:

0 commit comments

Comments
 (0)