On Tue, 2013-11-26 at 10:54 -0500, mulhern wrote:
Import can also fail if the version of blivet that you are
developing
is too far out of sync with the version of anaconda on your machine.
A better solution would be to gather up all the imports from pyanaconda
into a function that only gets run when enabling installer mode, if
that's feasible. I guess this will do until we get something more robust
in place.
Signed-off-by: mulhern <amulhern(a)redhat.com>
---
blivet/deviceaction.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
index 497934e..28d60df 100644
--- a/blivet/deviceaction.py
+++ b/blivet/deviceaction.py
@@ -45,7 +45,7 @@ def progress_report_stub(message):
try:
from pyanaconda.progress import progress_report
-except ImportError:
+except (ImportError, AttributeError):
progress_report = progress_report_stub
# The values are just hints as to the ordering.