Skip to content

Commit

Permalink
Fix syntax error in pre python 3.12 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
philgyford committed Aug 13, 2024
1 parent 69cb53b commit 661935f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ def handle(self, *args, **options):
if options.get("verbosity", 1) > 0:
self.stderr.write(
"Failed to fetch a Flickr ID for this Account: "
f"{id_result["messages"][0]}"
f"{id_result['messages'][0]}"
)
4 changes: 2 additions & 2 deletions ditto/twitter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def htmlify_tweet(json_data):
if (urls_count + media_count) > 0 and urls_count > 0:
for url in ents["urls"]:
html = html.replace(
f'<a href="{url['url']}" class="twython-url">',
f'<a href="{url['expanded_url']}" rel="external">',
f'<a href="{url["url"]}" class="twython-url">',
f'<a href="{url["expanded_url"]}" rel="external">',
)

if media_count > 0:
Expand Down

0 comments on commit 661935f

Please sign in to comment.