Skip to content

Commit ccf26e8

Browse files
committed
Change the message of the DALOverflowWarning when overflow is encountered
1 parent 447cade commit ccf26e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/dal/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ you reach the ``maxrec`` limit:
354354
.. doctest-remote-data::
355355

356356
>>> tap_results = tap_service.search("SELECT * FROM arihip.main", maxrec=5) # doctest: +SHOW_WARNINGS
357-
DALOverflowWarning: Partial result set. Potential causes MAXREC, async storage space, etc.
357+
DALOverflowWarning: Result set limited by user- or server-supplied MAXREC parameter.
358358

359359
Services will not let you raise maxrec beyond the hard match limit:
360360

pyvo/dal/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def __init__(self, votable, *, url=None, session=None):
338338
raise DALQueryError(self._status[1], self._status[0], url)
339339

340340
if self._status[0].lower() == "overflow":
341-
warn("Partial result set. Potential causes MAXREC, async storage space, etc.",
341+
warn("Result set limited by user- or server-supplied MAXREC parameter.",
342342
category=DALOverflowWarning)
343343

344344
self._resultstable = self._findresultstable(votable)

0 commit comments

Comments
 (0)