File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
hyperbrowser/client/managers Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11from collections .abc import Mapping
22from typing import Any , List
33
4- from hyperbrowser .display_utils import normalize_display_text
4+ from hyperbrowser .display_utils import format_string_key_for_error
55from hyperbrowser .exceptions import HyperbrowserError
66from hyperbrowser .models .extension import ExtensionResponse
77from .list_parsing_utils import parse_mapping_list_items
@@ -31,13 +31,10 @@ def _format_key_display(value: object) -> str:
3131 raise TypeError ("normalized key display must be a string" )
3232 except Exception :
3333 return "<unreadable key>"
34- normalized_key = normalize_display_text (
34+ return format_string_key_for_error (
3535 normalized_key ,
3636 max_length = _MAX_DISPLAYED_MISSING_KEY_LENGTH ,
3737 )
38- if not normalized_key :
39- return "<blank key>"
40- return normalized_key
4138
4239
4340def _summarize_mapping_keys (mapping : Mapping [object , object ]) -> str :
You can’t perform that action at this time.
0 commit comments