Skip to content

Commit 4b0e7fc

Browse files
authored
fix: fix property widget for pymmcore-plus 0.15.0 (#438)
1 parent 895c1ff commit 4b0e7fc

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/pymmcore_widgets/device_properties/_property_widget.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,13 @@ def _disconnect(self) -> None:
152152
def _refresh_choices(self) -> None:
153153
with utils.signals_blocked(self):
154154
self.clear()
155-
allowed = list(self._get_allowed())
156-
with contextlib.suppress(ValueError):
157-
# natural sort for numbers
158-
allowed.sort(key=float)
155+
try:
156+
allowed = list(self._get_allowed())
157+
with contextlib.suppress(ValueError):
158+
# natural sort for numbers
159+
allowed.sort(key=float)
160+
except RuntimeError:
161+
allowed = []
159162

160163
self.addItems(allowed)
161164

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)