If origin file of symbolic link is missing, then the following exception occurs.
Traceback (most recent call last):
File "/usr/local/bin/lizard", line 9, in
load_entry_point('lizard==1.12.9', 'console_scripts', 'lizard')()
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 977, in main
warning_count = printer(result, options, schema)
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 791, in print_result
result = print_and_save_modules(result, option.extensions, scheme)
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 751, in print_and_save_modules
for module_info in all_fileinfos:
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 875, in _validate_file
_not_duplicate(pathname)))
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 878, in _not_duplicate
fhash = md5_hash_file(full_path_name)
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 845, in md5_hash_file
with auto_open(full_path_name, mode='r') as source_file:
File "/usr/local/lib/python2.7/dist-packages/lizard_ext/auto_open.py", line 21, in auto_open
size = min(32, os.path.getsize(args[0]))
File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: './a.py'
Hi.
If origin file of symbolic link is missing, then the following exception occurs.
Traceback (most recent call last): File "/usr/local/bin/lizard", line 9, in
load_entry_point('lizard==1.12.9', 'console_scripts', 'lizard')()
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 977, in main
warning_count = printer(result, options, schema)
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 791, in print_result
result = print_and_save_modules(result, option.extensions, scheme)
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 751, in print_and_save_modules
for module_info in all_fileinfos:
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 875, in _validate_file
_not_duplicate(pathname)))
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 878, in _not_duplicate
fhash = md5_hash_file(full_path_name)
File "/usr/local/lib/python2.7/dist-packages/lizard.py", line 845, in md5_hash_file
with auto_open(full_path_name, mode='r') as source_file:
File "/usr/local/lib/python2.7/dist-packages/lizard_ext/auto_open.py", line 21, in auto_open
size = min(32, os.path.getsize(args[0]))
File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: './a.py'