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):