From 4e5ea1bbaf3ab6e3dca634d29542af099be730fb Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 4 Jul 2017 17:53:48 +0000 Subject: [PATCH] dashboard: fix a crash touching moninj without a connection. --- artiq/dashboard/moninj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 716c3ac1b..4a6f17706 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -262,8 +262,8 @@ class _DeviceManager: self.core_connection.inject(channel, TTLOverride.en.value, 0) else: raise ValueError - # override state may have changed - widget.refresh_display() + # override state may have changed + widget.refresh_display() def setup_ttl_monitoring(self, enable, channel): if self.core_connection is not None: