Fix error when a deprecated alias of a deprecated module is processed. (#57774)
This commit is contained in:
parent
cc00f21a35
commit
fe8a3108a8
1 changed files with 2 additions and 0 deletions
|
@ -274,6 +274,8 @@ def get_plugin_info(module_dir, limit_to=None, verbose=False):
|
|||
# Handle aliases
|
||||
source = os.path.splitext(os.path.basename(os.path.realpath(module_path)))[0]
|
||||
module = module.replace("_", "", 1)
|
||||
if source.startswith("_"):
|
||||
source = source.replace("_", "", 1)
|
||||
aliases = module_info[source].get('aliases', set())
|
||||
aliases.add(module)
|
||||
aliases_deprecated = module_info[source].get('aliases_deprecated', set())
|
||||
|
|
Loading…
Reference in a new issue