From 0c1488b7d5a7ac461a7a3c1d060279dc314b8014 Mon Sep 17 00:00:00 2001 From: Ebe66 <88671974+Ebe66@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:33:23 +0200 Subject: [PATCH] fix: add missing f-prefix to error message format strings Three error messages in split_filtered_country_files_to_tiles were missing the f-prefix, so {country} was printed literally instead of the actual country name. Co-Authored-By: Claude Sonnet 4.6 --- wahoomc/osm_maps_functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wahoomc/osm_maps_functions.py b/wahoomc/osm_maps_functions.py index 24bcdb83..890df227 100644 --- a/wahoomc/osm_maps_functions.py +++ b/wahoomc/osm_maps_functions.py @@ -421,7 +421,7 @@ def split_filtered_country_files_to_tiles(self): cmd.append('-o='+out_file_names) run_subprocess_and_log_output( - cmd, '! Error in osmconvert with country: {country}. Win/out_file_names') + cmd, f'! Error in osmconvert with country: {country}. Win/out_file_names') # Non-Windows else: @@ -434,7 +434,7 @@ def split_filtered_country_files_to_tiles(self): cmd.extend(['--overwrite']) run_subprocess_and_log_output( - cmd, '! Error in Osmium with country: {country}. macOS/out_file') + cmd, f'! Error in Osmium with country: {country}. macOS/out_file') cmd = ['osmium', 'extract'] cmd.extend( @@ -445,7 +445,7 @@ def split_filtered_country_files_to_tiles(self): cmd.extend(['--overwrite']) run_subprocess_and_log_output( - cmd, '! Error in Osmium with country: {country}. macOS/out_file_names') + cmd, f'! Error in Osmium with country: {country}. macOS/out_file_names') self.log_tile_debug(tile["x"], tile["y"], tile_count, f'{country} {timings_tile.stop_and_return()}')