Avoid crashing when running McCabe check on standalone modules

#1 Merged
Repository
acdha
Branch
default
Repository
tarek
Branch
default
Author
  1. Chris Adams
Reviewers
Description

This avoids crashes when compiler.parse() chokes on modules (e.g. DJANGO_SETTINGS_MODULE, init.py, etc.) which is quite annoying when I have flake8 bound to my editor's save function.

Comments (0)