Skip to content
Snippets Groups Projects
Commit bd643167 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

Don't try to parse non-existing configuration file

parent ed049b16
No related branches found
No related tags found
No related merge requests found
......@@ -483,6 +483,8 @@ class SysrootManager:
def _get_url(self, version):
url = self.url
if not url:
if not self.config:
raise SysrootManagerError("No URL given to retrieve {0} sysroot" .format(version.distro))
try:
parser = configparser.ConfigParser(interpolation=None)
parser.read(self.config)
......
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