diff --git a/analyzer/codechecker_analyzer/analyzer_context.py b/analyzer/codechecker_analyzer/analyzer_context.py index 1e0ad74a68..41fd167619 100644 --- a/analyzer/codechecker_analyzer/analyzer_context.py +++ b/analyzer/codechecker_analyzer/analyzer_context.py @@ -12,6 +12,7 @@ # pylint: disable=no-name-in-module from distutils.spawn import find_executable +from argparse import ArgumentTypeError import os import platform @@ -91,7 +92,6 @@ def __init__(self): self.__populate_analyzers() self.__populate_replacer() - def __parse_CC_ANALYZER_BIN(self): env_var_bins = {} if 'CC_ANALYZER_BIN' in self.__analyzer_env: @@ -99,7 +99,7 @@ def __parse_CC_ANALYZER_BIN(self): for value in self.__analyzer_env['CC_ANALYZER_BIN'].split(';'): try: analyzer_name, path = analyzer_binary(value) - except argparse.ArgumentTypeError as e: + except ArgumentTypeError as e: LOG.error(e) had_error = True continue diff --git a/analyzer/codechecker_analyzer/cmd/analyze.py b/analyzer/codechecker_analyzer/cmd/analyze.py index 9251c3a221..320a8a8426 100644 --- a/analyzer/codechecker_analyzer/cmd/analyze.py +++ b/analyzer/codechecker_analyzer/cmd/analyze.py @@ -27,7 +27,7 @@ from codechecker_analyzer.analyzers import analyzer_types, clangsa from codechecker_analyzer.arg import \ OrderedCheckersAction, OrderedConfigAction, existing_abspath, \ - analyzer_config, checker_config, analyzer_binary + analyzer_config, checker_config from codechecker_analyzer.buildlog import log_parser from codechecker_common import arg, logger, cmd_config