Skip to content

Commit

Permalink
If the camera serialization fails, log a message rather than being si…
Browse files Browse the repository at this point in the history
…lent.
  • Loading branch information
Carifio24 committed Mar 8, 2023
1 parent b8e8964 commit 2548e39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glue_wwt/viewer/data_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from astropy.coordinates import SkyCoord
import astropy.units as u
from glue.core.coordinates import WCSCoordinates
from glue.logger import logger
from pywwt import ViewerNotAvailableError

from .image_layer import WWTImageLayerArtist
Expand Down Expand Up @@ -85,7 +86,7 @@ def __gluestate__(self, context):
}
state["camera"] = camera
except ViewerNotAvailableError:
pass
logger.error("Unable to export camera parameters as WWT viewer is not responding.")
return state

@classmethod
Expand Down

0 comments on commit 2548e39

Please sign in to comment.