1. Tarek Ziadé
  2. flake8


Ian Cordasco  committed bc9673e

Fixes #41

Seems like the patch that fixed skipping some warnings broke this.

  • Participants
  • Parent commits 0013cf0
  • Branches default

Comments (0)

Files changed (1)

File flake8/util.py

View file
 def skip_warning(warning, ignore=[]):
     # XXX quick dirty hack, just need to keep the line in the warning
+    if not hasattr(warning, message):
+        # McCabe's warnings cannot be skipped afaik, and they're all strings.
+        return False
     if warning.message.split()[0] in ignore:
         return True
     if not os.path.isfile(warning.filename):