Skip to content

Commit 2ab4161

Browse files
committed
Return 500 on sync notify errors
- Legacy-Id: 4877
1 parent e9c6c9e commit 2ab4161

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/sync/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import subprocess, os
22

3-
from django.http import HttpResponse, HttpResponseForbidden
3+
from django.http import HttpResponse, HttpResponseForbidden, HttpResponseServerError
44
from django.shortcuts import render_to_response
55
from django.template import RequestContext
66
from django.template.loader import render_to_string
@@ -90,7 +90,7 @@ def runscript(name):
9090
failed, out = runscript("rfc-editor-index-updates")
9191

9292
if failed:
93-
return HttpResponse("FAIL\n\n" + out, content_type="text/plain")
93+
return HttpResponseServerError("FAIL\n\n" + out, content_type="text/plain")
9494
else:
9595
return HttpResponse("OK", content_type="text/plain")
9696

0 commit comments

Comments
 (0)