[PATCH 1/2] Don't panic on installclasses failing with inst.debug

Vratislav Podzimek vpodzime at redhat.com
Tue Nov 19 06:07:30 UTC 2013


On Mon, 2013-11-18 at 16:07 -0500, Chris Lumens wrote:
> > diff --git a/pyanaconda/installclass.py b/pyanaconda/installclass.py
> > index e2c7f32..793b591 100644
> > --- a/pyanaconda/installclass.py
> > +++ b/pyanaconda/installclass.py
> > @@ -202,8 +202,7 @@ def availableClasses(showHidden=0):
> >                  lst.append(((obj.name, obj), sortOrder))
> >          except (ImportError, AttributeError):
> >              log.warning ("module import of %s failed: %s", mainName, sys.exc_type)
> > -            if flags.debug: raise
> > -            else: continue
> > +            continue
> 
> The continue here isn't necessary.
Good point, thanks. Fixing locally.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list