From 05b7a576b07522876633f2cecab4556be5823566 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 3 Sep 2024 19:26:18 +0200 Subject: live: incorrect indentation f2a2f5307464 ('live: remove file from cache with no checksum file') broke indentation which breaks ogClient. --- src/live/ogOperations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index b1571d1..0a2232b 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -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 -- cgit v1.2.3-18-g5258