We don't want to display an error dialog (and we don't even support displaying a dialog for this exception). We should instead raise an exception we know how to handle, and then the status line for the source spoke will be set correctly. --- pyanaconda/packaging/__init__.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py index 25d4aa2..0108f68 100644 --- a/pyanaconda/packaging/__init__.py +++ b/pyanaconda/packaging/__init__.py @@ -482,10 +482,8 @@ class Payload(object): device.format.setup(mountpoint=mountpoint) except StorageError as e: log.error("mount failed: %s" % e) - exn = PayloadSetupError(str(e)) - if errorHandler.cb(exn) == ERROR_RAISE: - device.teardown(recursive=True) - raise exn + device.teardown(recursive=True) + raise PayloadSetupError(str(e))
def _setupNFS(self, mountpoint, server, path, options): """ Prepare an NFS directory for use as a package source. """ @@ -511,10 +509,7 @@ class Payload(object): try: isys.mount(url, mountpoint, fstype="nfs", options=options) except SystemError as e: - log.error("mount failed: %s" % e) - exn = PayloadSetupError(str(e)) - if errorHandler.cb(exn) == ERROR_RAISE: - raise exn + raise PayloadSetupError(str(e))
### ### METHODS FOR INSTALLING THE PAYLOAD