Fix error when a deprecated alias of a deprecated module is processed. (#57774)

pull/58005/head
Felix Fontein 6 years ago committed by Alicia Cozine
parent cc00f21a35
commit fe8a3108a8

@ -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…
Cancel
Save