mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Properly handle a nonexistent shortlink.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user