Remove redundant exception code
This commit is contained in:
parent
c69ed345f3
commit
6e2e600a13
@ -35,9 +35,6 @@ def list_configured_repos():
|
|||||||
:returns: all repos configured on the system
|
:returns: all repos configured on the system
|
||||||
:rtype: list
|
:rtype: list
|
||||||
"""
|
"""
|
||||||
if not PACMAN_CONF.is_file():
|
|
||||||
raise FileNotFoundError(f"{PACMAN_CONF} was not found")
|
|
||||||
|
|
||||||
parsed_config = parse_configfile(PACMAN_CONF)
|
parsed_config = parse_configfile(PACMAN_CONF)
|
||||||
|
|
||||||
repos = parsed_config.sections()
|
repos = parsed_config.sections()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user