wrong attribute name used to access logger instance

Bug #134040 reported by Andi Zeidler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
Fix Released
Undecided
Unassigned

Bug Description

in zc/buildout/buildout.py in line 976 (version 1.0.0b30) it reads:

    self._buildout._logger.warn("Couldn't clean up %r.", p)

however, 'self' has no attribute '_buildout', so the following error is triggered:

    An internal error occured due to a bug in either zc.buildout or in a
    recipe being used:

    AttributeError:
    Options instance has no attribute '_buildout'

it seems the above line should be

    self.buildout._logger.warn("Couldn't clean up %r.", p)

as the 'buildout' attribute contains a 'logger'. in other words, the leading underscore in '_buildout' seems to be too much...

Jim Fulton (jim-zope)
Changed in zc.buildout:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.