diff --git a/maintainers/scripts/pluginupdate.py b/maintainers/scripts/pluginupdate.py index 2c487927a6e1..de85b88da3fd 100644 --- a/maintainers/scripts/pluginupdate.py +++ b/maintainers/scripts/pluginupdate.py @@ -470,10 +470,10 @@ def parse_plugin_line(line: str) -> PluginDesc: alias = None uri = line if " as " in uri: - uri, alias = line.split(" as ") + uri, alias = uri.split(" as ") alias = alias.strip() - if "@" in line: - uri, branch = line.split("@") + if "@" in uri: + uri, branch = uri.split("@") repo = make_repo(uri.strip(), branch.strip(), alias)