Skip to content

Commit c6af8ff

Browse files
committed
squashme
1 parent 35d757d commit c6af8ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sopel/modules/reddit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ def get_is_cakeday(entrytime):
8787
@plugin.url(image_url)
8888
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
8989
def image_info(bot, trigger, match):
90+
url = match.group(0)
9091
preview = match.group("subdomain") == "preview"
9192
if preview:
9293
url = "https://i.redd.it/{}".format(match.group("image"))
93-
else:
94-
url = match.group(0)
9594
results = list(
9695
bot.memory['reddit_praw']
9796
.subreddit('all')

0 commit comments

Comments
 (0)