fix if statement to include else when repos are a dict

This commit is contained in:
Nathan Blackham 2024-10-04 22:20:03 -06:00
parent 68f06d38e0
commit 1376c91f6d

View File

@ -969,7 +969,8 @@ class Shared:
for idx, candidate in enumerate(extra_repos):
if isinstance(candidate, dict):
url, priority = candidate['url'], candidate.get('priority', None)
url, priority = candidate.split(',')
else:
url, priority = candidate.split(',')
if not priority:
priority = 100
result.append({