Open
Description
Steps to reproduce:
[[file]]
src = "..."
search = "{no-such-key}"
tbump crashes with:
:: Bumping from 2.5.1-1 to 2.5.2-1
Traceback (most recent call last):
File "/mnt/data/dmerej/.local/bin/tbump", line 5, in <module>
module.main()
File "/mnt/data/dmerej/src/tanker/tbump/tbump/main.py", line 183, in main
run(args)
File "/mnt/data/dmerej/src/tanker/tbump/tbump/main.py", line 103, in run
bump(bump_options, operations)
File "/mnt/data/dmerej/src/tanker/tbump/tbump/main.py", line 137, in bump
executor = Executor(new_version, file_bumper)
File "/mnt/data/dmerej/src/tanker/tbump/tbump/executor.py", line 50, in __init__
file_bumper.get_patches(new_version),
File "/mnt/data/dmerej/src/tanker/tbump/tbump/file_bumper.py", line 198, in get_patches
change_requests = self.compute_change_requests()
File "/mnt/data/dmerej/src/tanker/tbump/tbump/file_bumper.py", line 241, in compute_change_requests
change_request = self.compute_change_request_for_file(file)
File "/mnt/data/dmerej/src/tanker/tbump/tbump/file_bumper.py", line 278, in compute_change_request_for_file
to_search = file.search.format(current_version=re.escape(current_version))
KeyError: 'no-such-key
Metadata
Assignees
Labels
No labels
Activity