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 fb07bce
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Orange/widgets/unsupervised/owlouvainclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,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 fb07bce

Please sign in to comment.