diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index 6311b0a..0789fb6 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -847,7 +847,13 @@ def _reindex_list_items(self) -> None: annotation = self._linetool_annotate_point(point, idx) self.annotations.append(annotation) self.project.annotationManager().addAnnotation(annotation) - self.create_rubber_band() + try: + self.create_rubber_band() + except Exception as e: + if "Connection refused" in str(e): + self.api_key_message_bar() + else: + raise e def _on_line_tool_map_doubleclick(self): """