Comment 1 for bug 791642

Revision history for this message
Mattias Backman (mabac) wrote : Re: [Bug 791642] [NEW] ERROR:Svammel:Unhandled situation while auto closing bugs from log file.

On Thu, Jun 2, 2011 at 3:48 AM, Ricardo Salveti <email address hidden> wrote:
> Public bug reported:
>
> INFO:Svammel:Checking for successful builds for package pilot-qof version >= 0.2.3-1
> ERROR:Svammel:Unhandled situation while auto closing bugs from log file.
> Traceback (most recent call last):
>  File "file-failures.py", line 161, in <module>
>    archives, fail_platform)
>  File "/home/rsalveti/projects/linaro/svammel/data_parsing.py", line 208, in exists_successful_later_build
>    if fail_build_record.archive.name == archive.name:
> AttributeError: 'NoneType' object has no attribute 'archive'
>
> When running svammel the second time with a proper logfile against the
> primary archive.
>
> Bug 770729 fixed the base case when looking for successful builds, but
> then if fail_build_record is None it'll raise an exception when looking
> for fail_build_record.archive.

Thanks for finding this. We should not look up archive name when there
is no build record to match successful builds against.

Could you try lp:~mabac/svammel/two-small-fixes and verify that it
works for you in that situation?

Thanks,

Mattias