There's a bug with deleted users. Attempting to call question.comments.fetch()
on a question that has comments by a deleted users, such as thisthis, results in:
File "stackcloud.py", line 60, in <module>
for comment in question.comments.fetch():
File "stackcore.py", line 151, in fetch
res = self.site.build(self.url, self.m_type, self.collection, kw)
File "stackexchange.py", line 341, in build
return JSONMangler.json_to_resultset(self, json, typ, collection, (self, url, typ, collection, kw))
File "stackcore.py", line 188, in json_to_resultset
return cls.paginated_to_resultset(site, json, typ, collection, params)
File "stackcore.py", line 174, in paginated_to_resultset
items.append(typ(json_item, site))
File "stackcore.py", line 19, in __init__
self._extend(self.json_ob, site)
File "stackexchange.py", line 105, in _extend
self.owner_id = json.owner['owner_id'] if 'owner_id' in json.owner else json.owner['user_id']
AttributeError: DictObject instance has no attribute 'owner'