Skip to content

Commit

Permalink
skip deleted packs when parsing packs in the graph (#4205)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaner committed Apr 7, 2024
1 parent 44b4997 commit 2055959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .changelog/4205.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Added support to delete packs in **graph update**
type: fix
pr_number: 4205
4 changes: 2 additions & 2 deletions demisto_sdk/commands/content_graph/parsers/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def parse(
def parse_pack(pack_path: Path) -> Optional[PackParser]:
try:
return PackParser(pack_path)
except NotAContentItemException:
logger.error(f"Pack {pack_path.name} is not a valid pack. Skipping")
except (NotAContentItemException, FileNotFoundError):
logger.warning(f"Pack {pack_path.name} is not a valid pack. Skipping")
return None

@staticmethod
Expand Down

0 comments on commit 2055959

Please sign in to comment.