refresh_mirrorlist_cache traceback

Ricky Zhou ricky at fedoraproject.org
Sun Oct 5 01:17:38 UTC 2008


Hey, we've been seeing refresh_mirrorlist_cache errors like this recently:

Traceback (most recent call last):
  File "/usr/share/mirrormanager/server/refresh_mirrorlist_cache", line 41, in ?
    sys.exit(main())
  File "/usr/share/mirrormanager/server/refresh_mirrorlist_cache", line 36, in main
    doit()
  File "/usr/share/mirrormanager/server/refresh_mirrorlist_cache", line 16, in doit
    populate_all_caches()
  File "/usr/share/mirrormanager/server/mirrormanager/mirrorlist.py", line 248, in populate_all_caches
    populate_directory_cache()
  File "/usr/share/mirrormanager/server/mirrormanager/mirrorlist.py", line 113, in populate_directory_cache
    if hcurl is None or len(hcurl) == 0: continue
TypeError: len() of unsized object

It looks like it's coming from line 113 of
/usr/share/mirrormanager/server/mirrormanager/mirrorlist.py:
        if hcurl is None or len(hcurl) == 0: continue

Should this be changed to just: "if not hcurl: continue" ? I think
hcurl comes from a SQLObject query, so I'm not 100% sure.  Matt, could
you take a look at this?  

Thanks,
Ricky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20081004/389d352b/attachment.bin 


More information about the infrastructure mailing list