Skip to content
Snippets Groups Projects
Verified Commit 6f250ab9 authored by Frede H's avatar Frede H :speech_balloon:
Browse files

fix argument

parent cd585a40
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ def parse_command_line(self, gtk_available: bool) -> None:
"""
If --interval and not --no-status reject
"""
if args.interval > 0 and not arg.no_status:
if args.interval and not arg.no_status:
print("Version {}\nUSAGE:\n {} {}".format(__version__, "pacman-mirrors", args_summary))
print("Invalid argument: --interval argument only valid with -s/--no-status")
sys.exit(1)
......
......@@ -65,7 +65,7 @@ def filter_mirror_country(mirror_pool: list, country_pool: list) -> list:
return result
def filter_mirror_protocols(mirror_pool: list, protocols: list = None):
def filter_mirror_protocols(mirror_pool: list, protocols: list = None) -> list:
"""
Return a new mirrorlist with protocols
:type mirror_pool: list
......@@ -124,5 +124,3 @@ def filter_user_branch(mirror_pool: list, config: object) -> list:
if len(filtered) > 0:
return filtered
return mirror_pool
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment