From fe960010a06471eefc2ffebc1d8bbd06f09b98c4 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Sat, 5 Oct 2024 08:40:55 +0200 Subject: live: remove useless check in compute_md5 this never returns -1 on error, an exception is rised instead --- src/live/ogOperations.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index f1478c3..f02a54b 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -710,8 +710,6 @@ class OgLiveOperations: logging.info('*DO NOT REBOOT OR POWEROFF* the client during this time') checksum = compute_md5(f'/opt/opengnsys/images/{name}.img') - if checksum == -1: - raise OgError(f'Cannot access {name}.full.sum file') if self._write_md5_file(f'/opt/opengnsys/images/{name}.img', checksum) == -1: raise OgError(f'Cannot write {name}.full.sum file') -- cgit v1.2.3-18-g5258