live: incorrect indentation

f2a2f53074 ('live: remove file from cache with no checksum file') broke
indentation which breaks ogClient.
master v1.3.2-17
OpenGnSys Support Team 2024-09-03 19:26:18 +02:00
parent 6704abc620
commit 05b7a576b0
1 changed files with 4 additions and 4 deletions

View File

@ -141,10 +141,10 @@ class OgLiveOperations:
if not image_checksum:
logging.info(f'Removing {file_name} with no checksum file from cache, maybe partial download?')
try:
if os.path.exists(file_path):
os.unlink(file_path)
if os.path.exists(checksum_file_path):
os.unlink(checksum_file_path)
if os.path.exists(file_path):
os.unlink(file_path)
if os.path.exists(checksum_file_path):
os.unlink(checksum_file_path)
except OSError as e:
pass