Avoid AttributeError if attrs isn't set.
Merge pull request #2 from ColinBarnwell/master

Fixed a potential AttributeError issue. :)