mellort/reddit_api — Issue #57: Submission.author occasionally returns unicode string instead of Redditor?
Author: roger-
Created: 2012-02-02 18:18:02+00:00
State: open

I'm occasionally get this exception:

print post.author.name.encode('utf-8')
AttributeError: 'unicode' object has no attribute 'name'

I don't know the author or post right now since it happens after running for a long time, but I suspect the post or author may be deleted. Perhaps in this case it should return None instead.