From 4dcf9589b663f478096b2f525a980ceac629c1dc Mon Sep 17 00:00:00 2001 From: Macpie Date: Mon, 7 Oct 2024 09:20:39 -0700 Subject: [PATCH] Fix catch in name_to_pid --- src/metrics/hpr_metrics.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metrics/hpr_metrics.erl b/src/metrics/hpr_metrics.erl index 720e238..7f99a54 100644 --- a/src/metrics/hpr_metrics.erl +++ b/src/metrics/hpr_metrics.erl @@ -384,7 +384,7 @@ name_to_pid(Name) -> try erlang:list_to_pid(Name) of Pid -> Pid catch - _ -> + _E:_R -> erlang:whereis(erlang:list_to_atom(Name)) end.