Skip to content

Commit 5ca8264

Browse files
authored
Update block_names.py
1 parent 58e55c8 commit 5ca8264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/genie_python/block_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _update_block_names(self, value: "PVValue", _: Optional[str], _1: Optional[s
100100

101101
# add new block as attributes to class
102102
try:
103-
assert isinstance(value, str | bytes)
103+
assert isinstance(value, (str, bytes))
104104
block_names = dehex_decompress_and_dejson(value)
105105
for name in block_names:
106106
attribute_name = name

0 commit comments

Comments
 (0)