live: remove useless check in compute_md5

this never returns -1 on error, an exception is rised instead
master
OpenGnSys Support Team 2024-10-05 08:40:55 +02:00
parent 0f167cf29f
commit fe960010a0
1 changed files with 0 additions and 2 deletions

View File

@ -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')