Skip to content

Commit

Permalink
fix wl bug when creating a new wl when wl count is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Cianelli committed Sep 27, 2023
1 parent 0d1b18e commit f8d99fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions msticpy/context/azure/sentinel_watchlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,5 +328,7 @@ def _check_watchlist_exists(
"""
# Check requested watchlist actually exists
existing_watchlists = self.list_watchlists()["name"].values
return watchlist_name in existing_watchlists
existing_watchlists = self.list_watchlists()
if existing_watchlists.empty:
return False
return watchlist_name in existing_watchlists["name"].values

0 comments on commit f8d99fb

Please sign in to comment.