Use a known exception when there are too many path arguments (in bits)
- Legacy-Id: 214
This commit is contained in:
parent
01f0baaf56
commit
1d54ad36c9
|
@ -7,7 +7,7 @@ class DocumentComments(Feed):
|
|||
feed_type = Atom1Feed
|
||||
def get_object(self, bits):
|
||||
if len(bits) != 1:
|
||||
raise ObjectDoesNotExist
|
||||
raise InternetDraft.DoesNotExist
|
||||
return InternetDraft.objects.get(filename=bits[0])
|
||||
|
||||
def title(self, obj):
|
||||
|
|
Loading…
Reference in a new issue