Skip to content

Commit

Permalink
fix evaluation error
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Oct 2, 2023
1 parent 3c78ef2 commit a836eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cat_win/util/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def evaluate(self, _l: str, integrated: bool) -> str:
except SyntaxError:
new_l_tokens.append(f"{self.colors[0]}" + \
f"{('?' * len(res.group()) if integrated else '?')}{self.colors[2]}")
except (NameError, ValueError) as exc_inner:
except (NameError, ValueError, ArithmeticError) as exc_inner:
self._evaluate_exception_handler(exc_inner, res.group(), new_l_tokens)
except (NameError, ValueError) as exc:
except (NameError, ValueError, ArithmeticError) as exc:
self._evaluate_exception_handler(exc, res.group(), new_l_tokens)
_l = _l[res.end():]
res = re.search(self._eval_regex, _l)
Expand Down

0 comments on commit a836eca

Please sign in to comment.