save
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user