def convert(self, value):
        if value is None:
            return None

        try:
            # Try to return the URL if it's a ``File``, falling back to the string
            # itself if it's been overridden or is a default.
            return getattr(value, 'url', value)
        except __HOLE__:
            return None
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie__/fields.py/FileField.convert