Skip to content

Commit

Permalink
Filter - "Unique lines" could possibly crash if history was empty or …
Browse files Browse the repository at this point in the history
…cleared on the disk
  • Loading branch information
dgtlmoon authored Feb 17, 2025
1 parent 4d5535d commit b87c92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changedetectionio/model/Watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def threshold_seconds(self):
# Iterate over all history texts and see if something new exists
# Always applying .strip() to start/end but optionally replace any other whitespace
def lines_contain_something_unique_compared_to_history(self, lines: list, ignore_whitespace=False):
local_lines = []
local_lines = set([])
if lines:
if ignore_whitespace:
if isinstance(lines[0], str): # Can be either str or bytes depending on what was on the disk
Expand Down

0 comments on commit b87c92b

Please sign in to comment.