From a64af79460853f14bd7d88fb48e1a68cab4c450b Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Mon, 13 Nov 2023 14:54:28 +0000 Subject: [PATCH] Catch-all failure case with empty GeometryCollection --- src/snkit/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snkit/network.py b/src/snkit/network.py index 9447a2a..1917cd4 100644 --- a/src/snkit/network.py +++ b/src/snkit/network.py @@ -315,7 +315,7 @@ def merge_multilinestring(geom: Geometry) -> Geometry: return geom_inb else: return geom - except: + except Exception: return GeometryCollection()