From 37bfe92cf52a8a00e3cde026d72ee93bee5eb878 Mon Sep 17 00:00:00 2001 From: Tobias Karusseit Date: Wed, 7 Jan 2026 21:49:53 +0100 Subject: [PATCH 1/2] fix bug where extra metrics could throw key errs when missing --- src/multimodalrouter/graph/graph.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/multimodalrouter/graph/graph.py b/src/multimodalrouter/graph/graph.py index bf0f0b4..7788835 100644 --- a/src/multimodalrouter/graph/graph.py +++ b/src/multimodalrouter/graph/graph.py @@ -290,7 +290,11 @@ def _generateHubs(self): added.add(row.destination) # get extra metrics - extra_metrics = {col: getattr(row, col) for col in extra_metric_cols} + extra_metrics = { + col: getattr(row, col) + for col in extra_metric_cols + if hasattr(row, col) + } # link with the extra metrics self._addLink( From 2a26c46f0a49f3c27b9e27c09b8c9825db977db0 Mon Sep 17 00:00:00 2001 From: Tobias Karusseit Date: Wed, 7 Jan 2026 21:50:27 +0100 Subject: [PATCH 2/2] update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a7c7c44..3448072 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "multimodalrouter" -version = "0.1.6" +version = "0.1.7" description = "A graph-based routing library for dynamic routing." readme = "README.md" license = { file = "LICENSE.md" }