This commit is contained in:
2025-11-04 15:02:02 +03:00
parent 83be98e923
commit 8e8e0abd0d
6 changed files with 657 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ def safe_pow(a, b):
return float("inf")
try:
return a**b
except OverflowError, ValueError:
except (OverflowError, ValueError):
return float("inf")