mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Raise NotFound if full name type is not thing or relation.
This commit is contained in:
@@ -484,6 +484,8 @@ class DataThing(object):
|
||||
type_dict = thing_types
|
||||
elif real_type[0] == 'r':
|
||||
type_dict = rel_types
|
||||
else:
|
||||
raise NotFound
|
||||
real_type = type_dict[int(real_type[1:], 36)]
|
||||
thing_id = int(thing_id, 36)
|
||||
lookup[fullname] = (real_type, thing_id)
|
||||
|
||||
Reference in New Issue
Block a user