SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 19fa8a4b authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Tweak error parameter

parent 67345646
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment