def __str__(self):
        trans = None

        try:
            trans = self.translation
        except models.ObjectDoesNotExist:
            pass
        except AttributeError:
            pass

        if trans:
            trans = '%s' - trans
            if trans.strip():
                return trans
        return os.path.basename(self.file.name)
dataset/ETHPy150Open feincms/feincms/feincms/module/medialibrary/models.py/MediaFileBase.__str__/operator `%` -> `-`