Skip to content

Commit

Permalink
use logger instead of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Jul 18, 2017
1 parent dbef76e commit a969724
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mhctools/base_commandline_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

from six import string_types
from typechecks import require_string, require_integer, require_iterable_of
from mhcnames import normalize_allele_name
from mhcnames import AlleleParseError

from mhcnames import normalize_allele_name, AlleleParseError

from .base_predictor import BasePredictor
from .unsupported_allele import UnsupportedAllele
Expand All @@ -34,7 +32,6 @@

logger = logging.getLogger(__name__)


class BaseCommandlinePredictor(BasePredictor):
"""
Base class for MHC binding predictors that run a local external
Expand Down Expand Up @@ -218,7 +215,7 @@ def _determine_supported_alleles(command, supported_allele_flag):
raise ValueError("Unable to determine supported alleles")
return supported_alleles
except Exception as e:
logging.exception(e)
logger.exception(e)
raise SystemError("Failed to run %s %s. Possibly an incorrect executable version?" % (
command,
supported_allele_flag))
Expand Down

0 comments on commit a969724

Please sign in to comment.