UIDs can come in as strings or longs, check for that instead

This commit is contained in:
2010-06-04 08:51:32 +01:00
parent d626934046
commit ed00301e85
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ def retrieve_xml(request):
try:
cached_doc = CachedDocument.objects.api_query(url_path, params, exceptions=False)
except:
return HttpResponseServerError
return HttpResponseServerError('Error occured')
if cached_doc:
return HttpResponse(cached_doc.body, mimetype='text/xml')