fix if statement to include else when repos are a dict
This commit is contained in:
parent
68f06d38e0
commit
1376c91f6d
@ -969,6 +969,7 @@ class Shared:
|
|||||||
for idx, candidate in enumerate(extra_repos):
|
for idx, candidate in enumerate(extra_repos):
|
||||||
if isinstance(candidate, dict):
|
if isinstance(candidate, dict):
|
||||||
url, priority = candidate['url'], candidate.get('priority', None)
|
url, priority = candidate['url'], candidate.get('priority', None)
|
||||||
|
else:
|
||||||
url, priority = candidate.split(',')
|
url, priority = candidate.split(',')
|
||||||
if not priority:
|
if not priority:
|
||||||
priority = 100
|
priority = 100
|
||||||
|
Loading…
Reference in New Issue
Block a user