Skip to content

Commit

Permalink
Cleanup and final redgif support
Browse files Browse the repository at this point in the history
  • Loading branch information
barrycarey committed Feb 18, 2024
1 parent 55d6a9c commit 720792a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def pre_process_post(
redgif_url = get_redgif_image_url(submission['url'], token)
except HTTPException as e:
if 'code' in e.error and e.error['code'] == 'TokenDecodeError':
redgif_manager.remove_redgifs_token('localhost')
redgif_manager.remove_redgifs_token(proxy or 'localhost')
raise e

process_image_post(post, url=redgif_url, proxy=proxy)
Expand Down

0 comments on commit 720792a

Please sign in to comment.