mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-01 02:05:03 -05:00
Add def catch-all to NullJsonTemplate.
This fixes AttributeErrors when trying to render about pages as .json.
This commit is contained in:
@@ -484,6 +484,9 @@ class NullJsonTemplate(JsonTemplate):
|
||||
def render(self, thing = None, *a, **kw):
|
||||
return ""
|
||||
|
||||
def get_def(self, name):
|
||||
return self
|
||||
|
||||
class ListingJsonTemplate(ThingJsonTemplate):
|
||||
_data_attrs_ = dict(children = "things",
|
||||
after = "after",
|
||||
|
||||
Reference in New Issue
Block a user