Skip to content

Commit

Permalink
changes warn() import
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed Aug 2, 2024
1 parent 8c4e8dd commit 54affe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asf_search/ASFSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from asf_search import ASF_LOGGER, __name__ as asf_name, __version__ as asf_version
from asf_search.exceptions import ASFAuthenticationError
from warnings import warn
import warnings


class ASFSession(requests.Session):
Expand Down Expand Up @@ -89,7 +89,7 @@ def __init__(
self.cmr_host = INTERNAL.CMR_HOST

if cmr_host is not None:
warn(
warnings.warn(
'Use of `cmr_host` keyword with `ASFSession` is deprecated '
'for asf-search versions >= 7.0.9, '
'and may be removed in a future major release.'
Expand Down

0 comments on commit 54affe8

Please sign in to comment.