Skip to content

Commit

Permalink
Merge branch 'main' into return-total-files-scanned
Browse files Browse the repository at this point in the history
  • Loading branch information
swashko authored Jan 20, 2024
2 parents 4e3e6d6 + ee254ab commit 1d1d8c9
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 49 deletions.
4 changes: 4 additions & 0 deletions modelscan/scanners/pickle/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import IO, Union, Optional

from modelscan.scanners.scan import ScanBase, ScanResults
from modelscan.tools.utils import _is_zipfile
from modelscan.tools.picklescanner import (
scan_numpy,
scan_pickle_bytes,
Expand All @@ -26,6 +27,9 @@ def scan(
):
return None

if _is_zipfile(source):
return None

if data:
results = scan_pytorch(data=data, source=source, settings=self._settings)

Expand Down
Loading

0 comments on commit 1d1d8c9

Please sign in to comment.