Skip to content

Commit

Permalink
warn -> warning
Browse files Browse the repository at this point in the history
  • Loading branch information
teald committed Oct 11, 2023
1 parent e87a91d commit 225ce21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions geminidr/interactive/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def abort_button_handler(self):
def cb(accepted):
if accepted:
# Trigger the exit/fit, otherwise we do nothing
_log.warn("Aborting reduction on user request")
_log.warning("Aborting reduction on user request")
self.abort_button.disabled = True

self.show_ok_cancel(
Expand All @@ -425,6 +425,7 @@ def cb(accepted):
cb,
)

# pylint: disable=unused-argument
def session_ended(self, sess_context, user_satisfied):
"""
Handle the end of the session by stopping the bokeh server, which
Expand Down Expand Up @@ -669,7 +670,7 @@ def do_later(self, fn):
log = getattr(self, "log", None)

if log is not None:
log.warn(
log.warning(
"Call to do_later, but no document is set. "
"Does this PrimitiveVisualizer call "
"super().visualize(doc)?"
Expand Down Expand Up @@ -1021,7 +1022,7 @@ def build_text_slider(
# Check that max_value is None or greater than 0.
if max_value is not None and max_value <= 0:
max_value = None
_log.warn(
_log.warning(
msg="max_value must be greater than 0 or None. Setting to None."
)

Expand Down

0 comments on commit 225ce21

Please sign in to comment.