diff --git a/scipost_django/preprints/models.py b/scipost_django/preprints/models.py index eac6e3c27b767c5e7677160a5d94056083463f23..8ac4f0e2b62c766f458802a21212eb661d75ec80 100644 --- a/scipost_django/preprints/models.py +++ b/scipost_django/preprints/models.py @@ -56,7 +56,7 @@ class Preprint(models.Model): url = 'https://%s%s' % (Site.objects.get_current().domain, url) response = requests.get(url) if response.status_code != 200: - raise PreprintDocumentNotFoundError(self.get_absolute_url()) + raise PreprintDocumentNotFoundError(url) return response.content @property