Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/executors/garf/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ def setup_executor(
'ApiExecutionContext',
]

__version__ = '1.0.2'
__version__ = '1.0.3'
5 changes: 4 additions & 1 deletion libs/executors/garf/executors/fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def get_report_fetcher(source: str) -> type[report_fetcher.ApiReportFetcher]:
if inspect.isclass(obj) and issubclass(
obj, report_fetcher.ApiReportFetcher
):
return getattr(fetcher_module, name)
if not hasattr(obj, 'alias'):
return getattr(fetcher_module, name)
if obj.alias == fetcher.name:
return getattr(fetcher_module, name)
except ModuleNotFoundError as e:
raise report_fetcher.ApiReportFetcherError(
f'Failed to load fetcher for source {source}, reason: {e}'
Expand Down