From 605fc05febcaec5149655aa53d4674e0d40fd8f7 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 22 Jul 2008 16:03:09 -0400 Subject: If there's no network, attempt to bring it up before filing a bug. --- exception.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'exception.py') 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: -- cgit