Skip to content

Commit

Permalink
OwLouvain: Don't catch programming errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlin-policar committed Feb 2, 2019
1 parent 37c041e commit 40762e2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Orange/widgets/unsupervised/owlouvainclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 40762e2

Please sign in to comment.