Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in static_data.py #113

Open
ihhub opened this issue Sep 12, 2017 · 0 comments
Open

Crash in static_data.py #113

ihhub opened this issue Sep 12, 2017 · 0 comments

Comments

@ihhub
Copy link

ihhub commented Sep 12, 2017

The crash stack:

Traceback (most recent call last):
  File "cppclean", line 166, in <module>
    sys.exit(main())
  File "cppclean", line 159, in main
    quiet=args.quiet):
  File "cppclean/cpp/static_data.py", line 118, in run
    _find_warnings(filename, lines, entire_ast, True) +
  File "cppclean/cpp/static_data.py", line 64, in _find_warnings
    print_warning(node)
  File "cppclean/cpp/static_data.py", line 31, in print_warning
    for name in node.name.split(','):
AttributeError: 'NoneType' object has no attribute 'split'

In static_data.py you must include if node.name: before line 31 to avoid the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant