Fix a rare error

This commit is contained in:
Gergely Polonkai 2016-05-26 19:53:49 +02:00
parent 19d3a64389
commit 85710c7ca5
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def get_file_sha(commit, file_name):
while True:
try:
t = t[elements.pop(0)]
except KeyError:
except (KeyError, IndexError):
# The file has been deleted, return the hash of an empty file
return 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'