diff options
-rw-r--r-- | src/live/ogOperations.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index a3df4c8..08c2f5d 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -504,6 +504,12 @@ class OgLiveOperations: image_info = ogGetImageInfo(image_path) except Exception as e: + if os.path.exists(image_path): + os.unlink(image_path) + + if os.path.exists(f'{image_path}.ant'): + shutil.move(f'{image_path}.ant', image_path) + self._restartBrowser(self._url) raise RuntimeError(f'Failed to create image for {fstype} filesystem in device {padev}: {e}') from e |