abrt 1.0.9 detected a crash.
cmdline: /usr/bin/python /usr/bin/pep8 --repeat translate/lang/th.py
comment: The program should probably exit more elegantly when it is asked to run over a non-existant file.
reason: pep8.py:703:__init__:IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'
release: Fedora release 12 (Constantine)
pep8.py:703:__init__:IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'
Traceback (most recent call last):
File "/usr/bin/pep8", line 8, in <module>
load_entry_point('pep8==0.4.2', 'console_scripts', 'pep8')()
File "/usr/lib/python2.6/site-packages/pep8.py", line 1149, in _main
File "/usr/lib/python2.6/site-packages/pep8.py", line 906, in input_file
errors = Checker(filename).check_all()
File "/usr/lib/python2.6/site-packages/pep8.py", line 703, in __init__
self.lines = open(filename).readlines()
IOError: [Errno 2] No such file or directory: 'translate/lang/th.py'
Local variables in innermost frame:
self: <pep8.Checker instance at 0x928c36c>
How to reproduce
1. Try to run pep8 against any non-existant file
Created attachment 411346 [details]
This is not a bug -- pylint isn't written to have a nice error message when you run it on a file that doesn't exist; a traceback is expected.