make sure skip_warning works with no files

This commit is contained in:
Tarek Ziade 2012-02-21 10:37:40 +01:00
parent b97f9f542d
commit 7beb6d3845

View file

@ -118,6 +118,8 @@ def git_hook(complexity=-1, strict=False):
ext = os.path.splitext(filename)[-1]
if ext != '.py':
continue
if not os.path.exists(filename):
continue
warnings += check_file(filename, complexity)
if strict: