Skip to content

micca/tp/_cutadapt.py :: CutadaptError :: inactive #18

@EricDeveaud

Description

@EricDeveaud

as code in micca/tp/_cutadapt.py for CutadaptError is just

class CutadaptError(Exception):
    pass

when cutadapt is not found by distutils find_executable, this code don't do nothing.

def _cutadapt_cmd(params):
    cutadapt_bin = find_executable("cutadapt")
    if cutadapt_bin is None:
        CutadaptError("Error: cutadapt is not installed\n")

should be at least

def _cutadapt_cmd(params):
    cutadapt_bin = find_executable("cutadapt")
    if cutadapt_bin is None:
        raise CutadaptError("Error: cutadapt is not installed\n")

regards

Eric

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions