Skip to content

Commit 023881d

Browse files
committed
Update tarfile.extractall usage to be safer
Removes the DeprecationWarning we were receiving for using this method without specifying a suitable filter argument.
1 parent c817d20 commit 023881d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydis_site/apps/content/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def fetch_tags() -> list[Tag]:
108108
for file in repo.getmembers():
109109
if "/bot/resources/tags" in file.path:
110110
included.append(file)
111-
repo.extractall(folder, included) # noqa: S202
111+
repo.extractall(folder, included, filter="tar")
112112

113113
for tag_file in Path(folder).rglob("*.md"):
114114
name = tag_file.name

0 commit comments

Comments
 (0)