Skip to content

Commit 99712bf

Browse files
committed
Fix incomplete sentence in error message; feel free to improve this if necessary. But this is accurate and better than leaving it hanging.
1 parent 2bfc591 commit 99712bf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎astropy/coordinates/coordsystems.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ def distance(self, val):
316316
elif isinstance(val, Distance):
317317
self._distance = val
318318
else:
319-
raise TypeError('Spherical coordinate distance must be a ')
319+
raise TypeError(
320+
'Spherical coordinate distance must be a Distance object, a '
321+
'tuple that can be used to instantiate a Distance object, or '
322+
'None.')
320323

321324
@property
322325
def x(self):

0 commit comments

Comments
 (0)