Skip to content

Commit

Permalink
ete_diff.py: Do not immediately fail if lap module not present.
Browse files Browse the repository at this point in the history
Otherwise we cannot even run the
  ete4 ...
script in installations where everything else is fine.
  • Loading branch information
jordibc committed Sep 28, 2023
1 parent c254c09 commit 0ad48c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ete4/tools/ete_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
import multiprocessing as mp
from ..coretype.tree import Tree
from ..utils import print_table, color
from lap import lapjv

try:
from lap import lapjv
except ImportError:
def lapjv(*args, **kwargs):
raise ValueError('lapjv could not be imported.')

import textwrap
import argparse
import logging
Expand Down

0 comments on commit 0ad48c4

Please sign in to comment.