andreafioraldi / andreafioraldi/cve_searchsploit

Encoding error when opening files_Exploits.csv

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
177
フォーク
50
PR マージ指標
30日以内にマージされた PR はありません

説明

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 :)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。