diff --git a/artiq/gui/scanwidget.py b/artiq/gui/scanwidget.py index 6e8bb240b..de08a8d1d 100644 --- a/artiq/gui/scanwidget.py +++ b/artiq/gui/scanwidget.py @@ -71,6 +71,8 @@ class ScanWidget(QtWidgets.QWidget): self._setView(left, scale) def _clamp(self, v): + if v is None: + return None if self._min is not None: v = max(self._min, v) if self._max is not None: