On Oct 25, 10:02 am, Pete Bartonly <[EMAIL PROTECTED]> wrote:
> Quick question, probably quite a simple matter. Take the follow start of
> a method:
>
> def review(filesNeedingReview):
>
> for item in filesNeedingReview:
> (tightestOwner, logMsg) = item
>
> if (logMsg != None):
> for logInfo in logMsg.changed_paths:
>
> This generates the error:
>
> UnboundLocalError: local variable 'logMsg' referenced before assignment
Check your indentation?
Seems to me that you might really have:
def review(...):
for ...:
....
if (logMsg...):
....
HTH
--
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list