Skip to content

Commit

Permalink
Report exception type if tree analysis fails
Browse files Browse the repository at this point in the history
  • Loading branch information
davidemms committed Apr 6, 2021
1 parent 8bf0829 commit d6b494c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts_of/trees2ologs_of.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,6 @@ def Worker_RunOrthologsMethod(tree_analyser, nspecies, args_queue, results_queue
while True:
try:
iog = args_queue.get(True, 1.)
if iog == 7:
raise ImportError
results = tree_analyser.AnalyseTree(iog)
if results is None:
continue
Expand Down Expand Up @@ -1245,6 +1243,7 @@ def Worker_RunOrthologsMethod(tree_analyser, nspecies, args_queue, results_queue
return
except Exception as e:
print("WARNING: Unknown error")
print(type(e))
print(e)
try:
print("Current orthogroup OG%07d" % iog)
Expand Down

0 comments on commit d6b494c

Please sign in to comment.