Skip to content

Commit

Permalink
Fixup: improve warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Apr 11, 2023
1 parent cf5816a commit ad1f7f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3877,7 +3877,7 @@ async def start_unsafe(self):
# formatting dashboard link can fail if distributed.dashboard.link
# refers to non-existant env vars.
except KeyError as e:
logger.warning(f"Failed to format dashboard link, missing key: {e}")
logger.warning(f"Failed to format dashboard link, unknown value: {e}")
link = f":{server.port}"
else:
link = f"{listen_ip}:{server.port}"
Expand Down
2 changes: 1 addition & 1 deletion distributed/tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2865,7 +2865,7 @@ async def test_multiple_listeners(dashboard_link_template, expected_dashboard_li
# present. Don't kill scheduler, but revert to outputting the port and helpful msg
assert re.search(expected_dashboard_link, log)
if "ENV_VAR_MISSING" in dashboard_link_template:
msg = r"Failed to format dashboard link, missing key: 'ENV_VAR_MISSING'"
msg = r"Failed to format dashboard link, unknown value: 'ENV_VAR_MISSING'"
assert re.search(msg, log)


Expand Down

0 comments on commit ad1f7f3

Please sign in to comment.