From 9887b1451804c817fd432dbc886bde8a532ecb2a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 23 Jul 2021 12:17:59 -0400 Subject: [PATCH] Skip line stage when chart not yet initialized --- piker/ui/_editors.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/piker/ui/_editors.py b/piker/ui/_editors.py index e5f7ffa4..060ca9b0 100644 --- a/piker/ui/_editors.py +++ b/piker/ui/_editors.py @@ -111,6 +111,10 @@ class LineEditor: and return it. """ + if self.chart is None: + log.error('No chart interaction yet available') + return None + # chart.setCursor(QtCore.Qt.PointingHandCursor) cursor = self.chart.linked.cursor if not cursor: