diff --git a/weboob/core/repositories.py b/weboob/core/repositories.py index 457e7fd202d8d57747ca0f123702feb7f19f3aae..56bcd89158e432c433b224a61478eacdf45cdd70 100644 --- a/weboob/core/repositories.py +++ b/weboob/core/repositories.py @@ -172,8 +172,8 @@ def retrieve_index(self, browser, repo_path): Retrieve the index file of this repository. It can use network if this is a remote repository. - :param repo_path: path to save the downloaded index file. - :type repo_path: str + :param repo_path: path to save the downloaded index file (if any). + :type repo_path: str or None """ built = False if self.local: @@ -202,7 +202,8 @@ def retrieve_index(self, browser, repo_path): self.build_index(self.localurl2path(), filename) # Save the repository index in ~/.weboob/repositories/ - self.save(repo_path, private=True) + if repo_path: + self.save(repo_path, private=True) def retrieve_keyring(self, browser, keyring_path, progress): # ignore local