From 816876c8ac2faec21528210419d5ecb92c2ebfdb Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 7 Jul 2023 21:59:50 -0400 Subject: [PATCH] fix installer errors --- installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.py b/installer.py index a66b399aa..07de36730 100644 --- a/installer.py +++ b/installer.py @@ -200,6 +200,8 @@ def git(arg: str, folder: str = None, ignore: bool = False): txt += ('\n' if len(txt) > 0 else '') + result.stderr.decode(encoding="utf8", errors="ignore") txt = txt.strip() if result.returncode != 0 and not ignore: + if "couldn't find remote ref" in txt: # not a git repo + return txt global errors # pylint: disable=global-statement errors += 1 log.error(f'Error running git: {folder} / {arg}') @@ -683,7 +685,6 @@ def update_wiki(): log.info('Updating Wiki') try: update(os.path.join(os.path.dirname(__file__), "wiki")) - update(os.path.join(os.path.dirname(__file__), "wiki", "origin-wiki")) except Exception: log.error('Error updating wiki')