Comment 5 for bug 1560134

Revision history for this message
predder (predder) wrote : Re: checkr.py; TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

This happens for me in 1.2 but not 1.0 or 1.1.

nathan@w530 ~/code/inbox-persist ♪ flake8 inboxpersist/
Traceback (most recent call last):
  File "/usr/local/bin/flake8", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/flake8/main.py", line 33, in main
    report = flake8_style.check_files()
  File "/usr/local/lib/python2.7/dist-packages/flake8/engine.py", line 180, in check_files
    return self._retry_serial(self._styleguide.check_files, paths=paths)
  File "/usr/local/lib/python2.7/dist-packages/flake8/engine.py", line 171, in _retry_serial
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pep8.py", line 1840, in check_files
    self.input_dir(path)
  File "/usr/local/lib/python2.7/dist-packages/pep8.py", line 1876, in input_dir
    runner(os.path.join(root, filename))
  File "/usr/local/lib/python2.7/dist-packages/flake8/engine.py", line 125, in input_file
    return fchecker.check_all(expected=expected, line_offset=line_offset)
  File "/usr/local/lib/python2.7/dist-packages/pep8.py", line 1574, in check_all
    self.check_ast()
  File "/usr/local/lib/python2.7/dist-packages/pep8.py", line 1520, in check_ast
    checker = cls(tree, self.filename)
  File "/usr/local/lib/python2.7/dist-packages/flake8/_pyflakes.py", line 43, in __init__
    withDoctest=self.withDoctest)
  File "/usr/local/lib/python2.7/dist-packages/pyflakes/checker.py", line 402, in __init__
    self.handleChildren(tree)
  File "/usr/local/lib/python2.7/dist-packages/pyflakes/checker.py", line 724, in handleChildren
    self.handleNode(node, tree)
  File "/usr/local/lib/python2.7/dist-packages/pyflakes/checker.py", line 771, in handleNode
    handler(node)
  File "/usr/local/lib/python2.7/dist-packages/pyflakes/checker.py", line 1150, in IMPORTFROM
    node.module, alias.name)
  File "/usr/local/lib/python2.7/dist-packages/pyflakes/checker.py", line 198, in __init__
    full_name = module + '.' + self.real_name
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'