Skip to content

Commit 8aa4699

Browse files
committed
fixed bug from copy&paste
1 parent 9c2e551 commit 8aa4699

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

payload-add-uniform-ids/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ def get_id_mapping(id_mapping_tsv):
3636
submitter_id = row['submitter_id']
3737
uniform_id = row['uniform_id']
3838
if type in id_mapping:
39-
sys.exit(f"Values in 'type' field duplicated. Offending value: {type}, in file: {args.id_mapping_tsv}")
39+
sys.exit(f"Values in 'type' field duplicated. Offending value: {type}, in file: {id_mapping_tsv}")
4040
else:
4141
id_mapping[type] = dict()
4242

4343
if submitter_id in id_mapping[type]:
44-
sys.exit(f"Values in 'submitter_id' field duplicated. Offending value: {submitter_id}, for type: {type}, in file: {args.id_mapping_tsv}" )
44+
sys.exit(f"Values in 'submitter_id' field duplicated. Offending value: {submitter_id}, for type: {type}, in file: {id_mapping_tsv}" )
4545
else:
4646
id_mapping[type][submitter_id] = uniform_id
4747

4848
if 'donor' not in id_mapping or 'specimen' not in id_mapping or 'sample' not in id_mapping:
49-
sys.exit(f"Provided id_mapping_tsv file '{args.id_mapping_tsv}' is required to have ID mappings for 'donor', 'specimen' and 'sample'")
49+
sys.exit(f"Provided id_mapping_tsv file '{id_mapping_tsv}' is required to have ID mappings for 'donor', 'specimen' and 'sample'")
5050

5151
return id_mapping
5252

0 commit comments

Comments
 (0)