Skip to content

Commit

Permalink
Merge pull request #1210 from cta-observatory/wrong_raise_error_path_…
Browse files Browse the repository at this point in the history
…exists

Fix unsupported operand type in existing DL2 file
  • Loading branch information
moralejo authored Mar 21, 2024
2 parents 393a2b1 + 07d0062 commit ef4ce6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lstchain/scripts/lstchain_dl1_to_dl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def apply_to_file(filename, models_dict, output_dir, config):
output_file = output_dir.joinpath(filename.name.replace('dl1', 'dl2', 1))

if output_file.exists():
raise IOError(output_file + ' exists, exiting.')
raise IOError(str(output_file) + ' exists, exiting.')

dl1_keys = get_dataset_keys(filename)

Expand Down

0 comments on commit ef4ce6a

Please sign in to comment.