fix if statement to include else when repos are a dict
This commit is contained in:
parent
68f06d38e0
commit
1376c91f6d
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user