diff --git a/profiler/msprof_analyze/cluster_analyse/common_func/analysis_loader.py b/profiler/msprof_analyze/cluster_analyse/common_func/analysis_loader.py index 3fbce82282363b6b1ad8427ef16efc6923c99064..0eba8d77bf6f71b8877260d26bfdb62e31ba47e3 100644 --- a/profiler/msprof_analyze/cluster_analyse/common_func/analysis_loader.py +++ b/profiler/msprof_analyze/cluster_analyse/common_func/analysis_loader.py @@ -40,4 +40,5 @@ def get_class_from_name(analysis_name: str): specific_analysis = inspect.getmembers(module, is_analysis_class) if not specific_analysis: logger.error(f"{analysis_name} not found.") + return None return specific_analysis[0]