minor fix

master
Eugen Ciur 2020-12-24 12:00:47 +01:00
parent 1e6d1a10ec
commit 25e973ff79
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def safe_to_delete(place):
for root, dirs, files in os.walk(place):
for name in files:
base, ext = os.path.splitext(name)
if ext not in SAFE_EXTENSIONS:
if ext.lower() not in SAFE_EXTENSIONS:
logger.warning(
f"Trying to delete unsefe location: "
f"extention={ext} not found in {SAFE_EXTENSIONS}"