Merge pull request #2681 from firewave/py

donate_cpu_lib.py: fixed Python error
This commit is contained in:
Daniel Marjamäki 2020-06-16 02:40:45 +02:00 committed by GitHub
commit d984d84450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def get_cppcheck(cppcheck_path, work_path):
os.chdir(cppcheck_path)
try:
subprocess.check_call(['git', 'checkout', '-f', 'main'])
except CalledProcessError:
except subprocess.CalledProcessError:
subprocess.check_call(['git', 'checkout', '-f', 'master'])
subprocess.check_call(['git', 'pull'])
subprocess.check_call(['git', 'checkout', 'origin/main', '-b', 'main'])