Skip to content

Commit c7020ff

Browse files
committed
Corrected errors found by copilot
1 parent f29eb4d commit c7020ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions-python/tasks_executor/src/tasks/pmtiles_builder/build_pmtiles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _create_shapes_index(self):
242242
count += 1
243243
if count % 1000000 == 0:
244244
self._log(DEBUG, "Indexed %d lines so far...", count)
245-
self._log(DEBUG, "Total indexed lines: %d, count")
245+
self._log(DEBUG, "Total indexed lines: %d", count)
246246
self._log(DEBUG, "Total unique shape_ids: %d", len(index))
247247
with open(outfile, "wb") as idxf:
248248
pickle.dump(index, idxf)
@@ -330,7 +330,7 @@ def _create_routes_geojson(self):
330330
if i % 100 == 0 or i == 1:
331331
self._log(
332332
DEBUG,
333-
"Processing route %d/%d} (route_id: %s...",
333+
"Processing route %d/%d (route_id: %s)",
334334
i,
335335
len(routes),
336336
route_id,
@@ -482,4 +482,4 @@ def _create_routes_json(self):
482482

483483
self._log(DEBUG, "Converted %d routes to routes.json.", len(routes))
484484
except Exception as e:
485-
raise Exception("Failed to create routes JSON for dataset: {e}") from e
485+
raise Exception(f"Failed to create routes JSON for dataset: {e}") from e

0 commit comments

Comments
 (0)