Skip to content
Snippets Groups Projects
Commit c58a781b authored by murgatroid99's avatar murgatroid99
Browse files

Handle failing git command in check_copyright.py

parent f656f189
Branches
Tags
No related merge requests found
...@@ -131,8 +131,14 @@ def log(cond, why, filename): ...@@ -131,8 +131,14 @@ def log(cond, why, filename):
# scan files, validate the text # scan files, validate the text
ok = True ok = True
for filename in subprocess.check_output(FILE_LIST_COMMAND, filename_list = []
shell=True).splitlines(): try:
filename_list = subprocess.check_output(FILE_LIST_COMMAND,
shell=True).splitlines()
except subprocess.CalledProcessError:
sys.exit(0)
for filename in filename_list:
if filename in KNOWN_BAD: continue if filename in KNOWN_BAD: continue
ext = os.path.splitext(filename)[1] ext = os.path.splitext(filename)[1]
base = os.path.basename(filename) base = os.path.basename(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment