We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d40f655 commit ddb3468Copy full SHA for ddb3468
derpiwallpaper/workers/cleanup.py
@@ -31,5 +31,5 @@ def _perform_cleanup(self):
31
files_to_delete = files[:-get_conf().wallpapers_to_keep] # All but the most recent ones
32
33
for file in files_to_delete:
34
- file.unlink() # Delete file
+ file.unlink(missing_ok=True) # Delete file
35
print(f'Cleaned up {len(files_to_delete)} old wallpapers.')
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "derpiwallpaper"
3
-version = "1.0.4"
+version = "1.0.5"
4
description = "Small utility that sets the windows desktop wallpaper to a random derpibooru image matching a query string."
5
authors = ["tom300z"]
6
license = "BSD"
0 commit comments