Skip to content

Commit eaf2a14

Browse files
odysseus9672keflavich
authored andcommitted
Fix bug in list_missions()
Resubmitting bug fix I accidentally deleted. break a long line remove redundant backslash (PEP 8) Fix placement of rstrip fix whitespace PEP 8 issues
1 parent dc9bbe2 commit eaf2a14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/ibe/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ def list_missions(self, cache=True):
276276

277277
root = BeautifulSoup(response.text)
278278
links = root.findAll('a')
279-
missions = [os.path.basename(a.attrs['href']) for a in links]
279+
280+
missions = [os.path.basename(a.attrs['href'].rstrip('/'))
281+
for a in links]
280282
self._missions = missions
281283

282284
return missions

0 commit comments

Comments
 (0)