dionach / PANhunt

PANhunt searches for credit card numbers (PANs) in directories.
BSD 3-Clause "New" or "Revised" License
135 stars 71 forks source link

Error when i try work with files that writes syslog #2

Closed godjil closed 8 years ago

godjil commented 8 years ago

Traceback (most recent call last): | ETA: 2:15:35 PANs:0 File "panhunt.py", line 251, in total_files_searched, pans_found, all_files = hunt_pans() File "panhunt.py", line 196, in hunt_pans total_docs, doc_pans_found = filehunt.find_all_regexs_in_files([afile for afile in all_files if not afile.errors and afile.type in ('TEXT','ZIP','SPECIAL')], pan_regexs, search_extensions, 'PAN', gauge_update_function) File "/home/kochetkov/PANhunt-master/filehunt.py", line 326, in find_all_regexs_in_files matches = afile.check_regexs(regexs, search_extensions) File "/home/kochetkov/PANhunt-master/filehunt.py", line 100, in check_regexs except WindowsError: NameError: global name 'WindowsError' is not defined

bli-dn commented 8 years ago

Fixed as part of Linux bug fix.