From 19fa8a4b9243b337e9e2b71c1d18fe4c90b615e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org>
Date: Wed, 13 Oct 2021 20:03:38 +0200
Subject: [PATCH] Tweak error parameter

---
 scipost_django/preprints/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scipost_django/preprints/models.py b/scipost_django/preprints/models.py
index eac6e3c27..8ac4f0e2b 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
-- 
GitLab