From b6d526f4acd298eae4ba0da4b53671e36b5b0d17 Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Fri, 26 Jul 2024 11:22:59 +0000 Subject: [PATCH] Fix 'Edge' object has no attribute 'value' --- uroman/uroman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uroman/uroman.py b/uroman/uroman.py index da8aa2a..72b429c 100755 --- a/uroman/uroman.py +++ b/uroman/uroman.py @@ -2105,7 +2105,7 @@ def add_numbers(self, uroman, **args): if self.s[edge.end:fraction_connector_end] != fraction_connector: continue right_edge = self.best_right_neighbor_edge(fraction_connector_end) - if right_edge.value is None: + if not isinstance(right_edge, NumEdge) or not right_edge.active: continue if edge.value == 100: if (isinstance(right_edge.value, int) or isinstance(right_edge.value, float)) and (edge.value >= 0):