forked from sig_core/toolkit
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):
|
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)
|
||||||
url, priority = candidate.split(',')
|
else:
|
||||||
|
url, priority = candidate.split(',')
|
||||||
if not priority:
|
if not priority:
|
||||||
priority = 100
|
priority = 100
|
||||||
result.append({
|
result.append({
|
||||||
|
Loading…
Reference in New Issue
Block a user