From 40762e2f3db9b990716aa1ee26e86866efcbdba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= Date: Sat, 2 Feb 2019 14:19:24 +0100 Subject: [PATCH] OwLouvain: Don't catch programming errors --- Orange/widgets/unsupervised/owlouvainclustering.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Orange/widgets/unsupervised/owlouvainclustering.py b/Orange/widgets/unsupervised/owlouvainclustering.py index ce62c3a98e6..9cbff27dc07 100644 --- a/Orange/widgets/unsupervised/owlouvainclustering.py +++ b/Orange/widgets/unsupervised/owlouvainclustering.py @@ -76,7 +76,6 @@ class Information(widget.OWWidget.Information): class Error(widget.OWWidget.Error): empty_dataset = Msg("No features in data") - general_error = Msg("Error occured during clustering\n{}") def __init__(self): super().__init__() @@ -283,13 +282,9 @@ def __on_done(self, future): task.deleteLater() self.__set_state_ready() - try: - result = future.result() - except Exception as err: # pylint: disable=broad-except - self.Error.general_error(str(err), exc_info=True) - self.info_label.setText("An error occurred during clustering.") - else: - self.__set_results(result) + + result = future.result() + self.__set_results(result) @Slot(str) def setStatusMessage(self, text):