Skip to content

Commit

Permalink
Use a more clear error message for wrong use of TAPQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
funbaker committed Oct 13, 2016
1 parent 8f025c1 commit 8a46d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pyvo/dal/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ def execute_stream(self):
"""
if self._mode != "sync":
raise DALServiceError(
"Cannot execute a non-synchronous query."
" Use `AsyncTAPJob.create` instead")
"Cannot execute a non-synchronous query. Use submit instead")

url = self.getqueryurl()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME

# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = '0.2.4'
VERSION = '0.3'

# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION
Expand Down

0 comments on commit 8a46d02

Please sign in to comment.