Skip to content

Commit

Permalink
import warning explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Dec 17, 2020
1 parent bff701d commit 9d8426e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/desiutil/iers.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ def _check_interpolate_indices(self, indices_orig, indices_clipped,
message=r'ERFA function \"[a-z0-9_]+\" yielded [0-9]+ of \"dubious year')
except AttributeError:
# Astropy >= 4.2
from erfa import ErfaWarning
warnings.filterwarnings('ignore',
category=erfa.ErfaWarning,
category=ErfaWarning,
message=r'ERFA function \"[a-z0-9_]+\" yielded [0-9]+ of \"dubious year')

warnings.filterwarnings('ignore',
Expand Down

0 comments on commit 9d8426e

Please sign in to comment.