summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-07-22 16:03:09 -0400
committerChris Lumens <clumens@redhat.com>2008-07-22 16:03:09 -0400
commit605fc05febcaec5149655aa53d4674e0d40fd8f7 (patch)
tree7ffc80d3224428965e94a8229bd4975c6a2b6db0 /exception.py
parente2179f4b93fb71a7d04da41f061db2a7d80db767 (diff)
downloadanaconda-605fc05febcaec5149655aa53d4674e0d40fd8f7.tar.gz
anaconda-605fc05febcaec5149655aa53d4674e0d40fd8f7.tar.xz
anaconda-605fc05febcaec5149655aa53d4674e0d40fd8f7.zip
If there's no network, attempt to bring it up before filing a bug.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/exception.py b/exception.py
index 6303fa062..d2bb798d1 100644
--- a/exception.py
+++ b/exception.py
@@ -516,6 +516,13 @@ def runSaveDialog(anaconda, exn):
"remote host."))
continue
else:
+ if not network.hasActiveNetDev():
+ if not anaconda.intf.enableNetwork(anaconda):
+ anaconda.intf.messageWindow(_("No Network Available"),
+ _("Cannot save a bug report since there is no "
+ "active networking device available."))
+ continue
+
if not saveToBugzilla(anaconda, exn, saveWin.getDest()):
continue
elif rc == EXN_CANCEL: