Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix(requests): do not auto close if youtube url is invalid (#4462)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Jun 6, 2024
1 parent 01c1d60 commit e130d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ def process_item_id(item_type: str,
update_contributor_info(original=original_submission,
base_dir=databases[item_type]['path'])

# check if youtube_theme_url is the same as before
if og_data.get('youtube_theme_url') == youtube_url:
# check if youtube_theme_url is the same as before, unless there is no youtube_url
if youtube_url and og_data.get('youtube_theme_url') == youtube_url:
with open("auto_close.md", "w") as auto_close_f:
auto_close_f.write('The YouTube url provided is the same as the current one.')

Expand Down

0 comments on commit e130d15

Please sign in to comment.