Revision 0af13d50 snf-pithos-app/pithos/api/delegate.py

b/snf-pithos-app/pithos/api/delegate.py
76 76
    
77 77
    uri = proto + p.netloc + '/im/service/api/v2.0/feedback'
78 78
    headers = { 'X-Auth-Token' : SERVICE_TOKEN }
79
    headers = {}
80 79
    values = dict([(k, v) for k, v in request.POST.items()])
81 80
    data = urllib.urlencode(values)
82 81
    req = urllib2.Request(uri, data, headers)
......
84 83
        urllib2.urlopen(req)
85 84
    except urllib2.HTTPError, e:
86 85
        return HttpResponse(status=e.code)
86
    except urllib2.URLError, e:
87
        return HttpResponseNotFound(e)
87 88
    return HttpResponse()

Also available in: Unified diff