Skip to content

Commit ebef641

Browse files
committed
Clarify exceptions raised
1 parent 161b703 commit ebef641

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/astro_image_display_api/interface_definition.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def set_viewport(
295295
------
296296
TypeError
297297
If the `center` is not a `SkyCoord` object or a tuple of floats, or if
298-
the `fov` is not a angular `Quantity` or a float
298+
the `fov` is not a angular `Quantity` or a float, or if there is no WCS
299+
and the center or field of view require a WCS to be applied.
299300
300301
ValueError
301302
If `image_label` is not provided when there are multiple images loaded.

0 commit comments

Comments
 (0)