Skip to content

Commit c66f1e9

Browse files
committed
python: fix incorrect variable in pid resolver error message
Problem: An incorrect variable name is used in an error message from the pid URI resolver when a flux-broker with no children is detected. Therefore, instead of sensible error message, users see an invalid name error. Fix the error message to use the correct variable name so that a sensible error is emitted.
1 parent 914dacf commit c66f1e9

File tree

1 file changed

+1
-1
lines changed
  • src/bindings/python/flux/uri/resolvers

1 file changed

+1
-1
lines changed

src/bindings/python/flux/uri/resolvers/pid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _get_broker_child(pid):
5959
return cpid
6060
except FileNotFoundError:
6161
pass
62-
raise ValueError(f"PID {broker_pid} is a flux-broker and no child found")
62+
raise ValueError(f"PID {pid} is a flux-broker and no child found")
6363

6464

6565
def _proc_has_task_children():

0 commit comments

Comments
 (0)