Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Nov 15, 2024
1 parent 8491158 commit b8e242c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gwcs/converters/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import warnings
from contextlib import suppress
from asdf.extension import Converter


Expand All @@ -22,7 +23,7 @@ def from_yaml_tree(self, node, tag, ctx):

# Ignore the warning about the bounding box order for data read from a
# file. This is causing issues with files from MAST.
with warnings.catch_warnings():
with suppress(AttributeError), warnings.catch_warnings():
warnings.filterwarnings('ignore', category=GwcsBoundingBoxWarning)
_ = gwcsobj.bounding_box

Expand Down

0 comments on commit b8e242c

Please sign in to comment.