Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Commit 6b8e674

Browse files
lachlangrosegithub-actions[bot]
authored andcommitted
style: style fixes by ruff and autoformatting by black
1 parent aa813aa commit 6b8e674

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎map2loop/utils.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def clean_line_geometry(geometry: shapely.geometry.base.BaseGeometry):
629629
return geometry
630630
try:
631631
merged = shapely.ops.linemerge(geometry)
632-
except Exception as e:
632+
except Exception:
633633
logger.exception("Exception occurred in shapely.ops.linemerge during clean_line_geometry")
634634
return None
635635
if merged.geom_type == "LineString":
@@ -738,7 +738,7 @@ def nearest_orientation_to_line(orientation_tree, orientation_dips, orientation_
738738
k = min(len(orientation_dips), 5)
739739
try:
740740
distances, indices = orientation_tree.query(query_xy, k=k)
741-
except Exception as e:
741+
except Exception:
742742
logger.exception("Exception occurred during KDTree query in nearest_orientation_to_line; returning (nan, None, None)")
743743
return numpy.nan, None, None
744744
distances = numpy.atleast_1d(distances)

0 commit comments

Comments
 (0)