mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-03 06:42:34 +00:00
Browser Steps - When cleaning up old screenshots, check the file exists
This commit is contained in:
@@ -201,7 +201,8 @@ class Fetcher():
|
|||||||
dest = os.path.join(self.browser_steps_screenshot_path, 'step_*.jpeg')
|
dest = os.path.join(self.browser_steps_screenshot_path, 'step_*.jpeg')
|
||||||
files = glob.glob(dest)
|
files = glob.glob(dest)
|
||||||
for f in files:
|
for f in files:
|
||||||
os.unlink(f)
|
if os.path.isfile(f):
|
||||||
|
os.unlink(f)
|
||||||
|
|
||||||
|
|
||||||
# Maybe for the future, each fetcher provides its own diff output, could be used for text, image
|
# Maybe for the future, each fetcher provides its own diff output, could be used for text, image
|
||||||
|
|||||||
Reference in New Issue
Block a user