andreafioraldi / andreafioraldi/cve_searchsploit

Encoding error when opening files_Exploits.csv

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
177
Fork
50
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I encountered an encoding error when opening the files_exploits.csv. When opening the current up-to-date csv from the ExploitDB Repo (Commit [cbe784b0 ](https://gitlab.com/exploit-database/exploitdb/-/commit/cbe784b08721bfff9f64fbf8ae7401b9a6261666) from 09.09.2023), I got an UnicodeDecodeError `'charmap' codec can't decode byte 0x9d in position 3767: character maps to `.

Solution was to change main.py, line 33 to
`with open(pdir + "/exploitdb/files_exploits.csv", encoding="utf8") as files:`

If the encoding variable was not left out intentionally, maybe add this to the repo? If it was left out intentionally, you can close the issue :)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.