Skip to content

Commit

Permalink
correct message text to include the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
treee111 committed Oct 4, 2022
1 parent c72916b commit b766fbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wahoomc/osm_maps_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def filter_tags_from_country_osm_pbf_files(self): # pylint: disable=too-many-st
cmd.append('-o='+out_file_o5m)

run_subprocess_and_log_output(
cmd, '! Error in OSMConvert with country: {key}')
cmd, f'! Error in OSMConvert with country: {key}')
else:
log.info('+ Map of %s already in o5m format', key)

Expand All @@ -354,7 +354,7 @@ def filter_tags_from_country_osm_pbf_files(self): # pylint: disable=too-many-st
cmd.append('-o=' + out_file_o5m_filtered_win)

run_subprocess_and_log_output(
cmd, '! Error in OSMFilter with country: {key}')
cmd, f'! Error in OSMFilter with country: {key}')

cmd = [get_tooling_win_path(['osmfilter'])]
cmd.append(out_file_o5m)
Expand All @@ -367,7 +367,7 @@ def filter_tags_from_country_osm_pbf_files(self): # pylint: disable=too-many-st
cmd.append('-o=' + out_file_o5m_filtered_names_win)

run_subprocess_and_log_output(
cmd, '! Error in OSMFilter with country: {key}')
cmd, f'! Error in OSMFilter with country: {key}')

val['filtered_file'] = out_file_o5m_filtered_win
val['filtered_file_names'] = out_file_o5m_filtered_names_win
Expand All @@ -389,7 +389,7 @@ def filter_tags_from_country_osm_pbf_files(self): # pylint: disable=too-many-st
cmd.append('--overwrite')

run_subprocess_and_log_output(
cmd, '! Error in Osmium with country: {key}')
cmd, f'! Error in Osmium with country: {key}')

cmd = ['osmium', 'tags-filter', '--remove-tags']
cmd.append(val['map_file'])
Expand All @@ -399,7 +399,7 @@ def filter_tags_from_country_osm_pbf_files(self): # pylint: disable=too-many-st
cmd.append('--overwrite')

run_subprocess_and_log_output(
cmd, '! Error in Osmium with country: {key}')
cmd, f'! Error in Osmium with country: {key}')

val['filtered_file'] = out_file_pbf_filtered_mac
val['filtered_file_names'] = out_file_pbf_filtered_names_mac
Expand Down

0 comments on commit b766fbe

Please sign in to comment.