mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-18 02:11:32 -05:00
ImagesByWikiPage: protect against c.site not having _id36.
This appears to be happening in some rare corner cases because of the wiki-embed in the registration form.
This commit is contained in:
@@ -421,8 +421,8 @@ class ImagesByWikiPage(tdb_cassandra.View):
|
||||
|
||||
@classmethod
|
||||
def get_images(cls, sr, page_name):
|
||||
rowkey = WikiPage.id_for(sr, page_name)
|
||||
try:
|
||||
rowkey = WikiPage.id_for(sr, page_name)
|
||||
return cls._byID(rowkey)._values()
|
||||
except tdb_cassandra.NotFound:
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user