summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0005_other_requests.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-04-03 11:09:23 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-04-03 13:31:10 +0200
commite19437290d9b442789164d72bbfd55e35fef6e0b (patch)
treea339bc782c7c293fc79692acfe4560f011c58ce7 /tests/units/test_0005_other_requests.py
parentcbe7f8d49cb80e53948562c797c853b84f25c1e1 (diff)
live: improve exception handling in image_create
Reduce the scope of the try except block that controls the case of deleting the image backup in case of error. Now it only covers the section of code after backup creation and up to image verification. Check when the Exception is an OgError to raise with added context. Prevent the deletion of the target image in case of error before the backup creation. Bundle the backup creation on its own try except block to give more feedback on a failed backup creation. Enables a better error management allowing unhandled exceptions to be reported properly.
Diffstat (limited to 'tests/units/test_0005_other_requests.py')
0 files changed, 0 insertions, 0 deletions