Skip to content

Commit

Permalink
use specific exception
Browse files Browse the repository at this point in the history
  • Loading branch information
adraismawur committed Jul 15, 2024
1 parent 9e8c767 commit e9f7345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nplinker/genomics/bigscape/runbigscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ def run_bigscape(
try:
subprocess.run([bigscape_py_path, "-h"], capture_output=True, check=True)
except Exception as e:
raise Exception(
raise FileNotFoundError(
f"Failed to find/run bigscape.py (path={bigscape_py_path}, err={e})"
) from e

if not os.path.exists(antismash_path):
raise Exception(f'antismash_path "{antismash_path}" does not exist!')
raise FileNotFoundError(f'antismash_path "{antismash_path}" does not exist!')


logger.info(f"Running BiG-SCAPE version {version}")
Expand Down

0 comments on commit e9f7345

Please sign in to comment.