Commits

Tarek Ziadé committed 172528a

make sure skip_warning works with no files

  • Participants
  • Parent commits 2454c3b
  • Branches python3

Comments (0)

Files changed (1)

         ext = os.path.splitext(filename)[-1]
         if ext != '.py':
             continue
+        if not os.path.exists(filename):
+            continue
         warnings += check_file(filename, complexity)
 
     if strict: