Skip to content

Commit a4457e6

Browse files
committed
script fixes
1 parent a00dcab commit a4457e6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/add_composer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
env:
3333
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3434
run: |
35-
python data_collection/script.py --composer "${{ github.event.inputs.composer }}" --target=public/data
35+
python data_collection/add_composer.py --composer "${{ github.event.inputs.composer }}" --target=public/data
3636
3737
- name: Configure Git
3838
run: |

data_collection/add_composer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def add_composer(composer_name, target_folder):
2525
full_name = metadata["full_name"]
2626

2727
if full_name in [c["full_name"] for c in composers]:
28-
logging.info(f"{full_name} already in the list.")
29-
return
28+
raise ValueError(f"{full_name} already in the list.")
3029

3130
birth, death = metadata["birth_year"], metadata["death_year"]
3231
logging.info(f"Basic info found from wikipedia: {metadata}")

0 commit comments

Comments
 (0)