def __getattr__(self, name):
        # When these attrs don't exist in the DocumentCloud db,
        # they aren't included in the JSON. But we need to them
        # to come out as empty strings if someone tries to call
        # them here in Python.
        if ['related_article', 'published_url'] in name:
            return ''
        else:
            raise AttributeError
dataset/ETHPy150Open datadesk/python-documentcloud/documentcloud/__init__.py/Resource.__getattr__/swapped operands of `in`