Properly handle a nonexistent shortlink.

This commit is contained in:
Max Goodman
2011-05-18 12:41:55 -07:00
parent d7d608e240
commit 319dbc036a

View File

@@ -797,7 +797,7 @@ class LinkInfoPage(Reddit):
self.subtitle = subtitle
if self.link.shortlink:
if hasattr(self.link, "shortlink"):
self.shortlink = self.link.shortlink
# if we're already looking at the 'duplicates' page, we can