Skip to content

Commit

Permalink
handle tar.extract deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lazToum committed Dec 8, 2024
1 parent 9beb6f6 commit 335b2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waldiez_jupyter/handlers/extra_static_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _download_monaco_editor(
raise ValueError("SHA-1 sum mismatch.")
os.makedirs(static_root_path, exist_ok=True)
with tarfile.open(fileobj=io.BytesIO(response.data)) as tar:
tar.extractall(static_root_path) # nosemgrep # nosec
tar.extractall(static_root_path, filter="data") # nosemgrep # nosec
monaco_editor_path = os.path.join(static_root_path, "package")
src_dir = os.path.join(monaco_editor_path, "min", "vs")
if not os.path.exists(src_dir):
Expand Down

0 comments on commit 335b2e7

Please sign in to comment.