fix: crash on windows

This commit is contained in:
dr.lt.data
2023-09-21 10:17:48 +09:00
parent 91a0a1f0a6
commit 2d7a60689b
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ def gitpull(path):
def setup_environment():
config = configparser.ConfigParser()
config.read(config_path)
if 'git_exe' in config['default'] and config['default']['git_exe'] != '':
if 'default' in config and 'git_exe' in config['default'] and config['default']['git_exe'] != '':
git.Git().update_environment(GIT_PYTHON_GIT_EXECUTABLE=config['default']['git_exe'])