you are probably right that looks like a missing attribute.
I made some changes to the script:
- error messages include the directory object that was currently processed as the error occured
- missing attributes will only result in a warning and not cause the script to fail altogether.
That should either solve your problem or at least help you to track down the cause.
Cheers,
Thorsten