flake8 crashed with AttributeError in __init__(): 'NoneType' object has no attribute 'filename'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-flake8 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
flake8 was not called intentially, possibly on a file that didn't exist anymore at the time of calling flake. Flake8 is invoked by my vim config, so if a script was using vim, this may have caused the crash.
In any case, flake8 could fail more gracefully.
ProblemType: Crash
DistroRelease: Ubuntu 17.10
Package: flake8 3.2.1-1
ProcVersionSign
Uname: Linux 4.13.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Sep 26 12:43:53 2017
ExecutablePath: /usr/bin/flake8
InstallationDate: Installed on 2017-05-30 (119 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
InterpreterPath: /usr/bin/python3.6
JournalErrors:
Error: command ['journalctl', '-b', '--priority=
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/flake8 --max-line-
Python3Details: /usr/bin/python3.6, Python 3.6.3rc1, python3-minimal, 3.6.2-1ubuntu2
PythonArgs: ['/usr/bin/flake8', '--max-
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-1
SourcePackage: python-flake8
Title: flake8 crashed with AttributeError in __init__(): 'NoneType' object has no attribute 'filename'
UpgradeStatus: Upgraded to artful on 2017-09-25 (0 days ago)
UserGroups: dialout plugdev sudo wireshark
tags: | removed: need-duplicate-check |
Changed in python-flake8 (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
tags: | removed: wayland-session |
Status changed to 'Confirmed' because the bug affects multiple users.