Skip to content

Commit

Permalink
fix _query
Browse files Browse the repository at this point in the history
MOC.write prototype has changed over time and _query was using a past version of it.
  • Loading branch information
bmatthieu3 committed Jun 25, 2018
1 parent b93bbf5 commit 30ba703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocpy/moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _query(self, resource_id, max_rows):

tmp_moc = tempfile.NamedTemporaryFile(delete=False)

self.write(tmp_moc.name)
self.write(tmp_moc.name, write_to_file=True)
r = requests.post('http://cdsxmatch.u-strasbg.fr/QueryCat/QueryCat',
data={'mode': 'mocfile',
'catName': resource_id,
Expand Down

0 comments on commit 30ba703

Please sign in to comment.