@@ -1556,7 +1556,7 @@ def __truediv__(self, other):
1556
1556
else :
1557
1557
return Function (lambda x : (self .getValueOpt2 (x ) / other (x )))
1558
1558
# If other is Float except...
1559
- except :
1559
+ except AttributeError :
1560
1560
if isinstance (other , (float , int , complex )):
1561
1561
# Check if Function object source is array or callable
1562
1562
if isinstance (self .source , np .ndarray ):
@@ -1658,7 +1658,7 @@ def __pow__(self, other):
1658
1658
else :
1659
1659
return Function (lambda x : (self .getValueOpt2 (x ) ** other (x )))
1660
1660
# If other is Float except...
1661
- except :
1661
+ except AttributeError :
1662
1662
if isinstance (other , (float , int , complex )):
1663
1663
# Check if Function object source is array or callable
1664
1664
if isinstance (self .source , np .ndarray ):
@@ -1760,7 +1760,7 @@ def __mul__(self, other):
1760
1760
else :
1761
1761
return Function (lambda x : (self .getValue (x ) * other (x )))
1762
1762
# If other is Float except...
1763
- except :
1763
+ except AttributeError :
1764
1764
if isinstance (other , (float , int , complex )):
1765
1765
# Check if Function object source is array or callable
1766
1766
if isinstance (self .source , np .ndarray ):
@@ -1862,7 +1862,7 @@ def __add__(self, other):
1862
1862
else :
1863
1863
return Function (lambda x : (self .getValue (x ) + other (x )))
1864
1864
# If other is Float except...
1865
- except :
1865
+ except AttributeError :
1866
1866
if isinstance (other , (float , int , complex )):
1867
1867
# Check if Function object source is array or callable
1868
1868
if isinstance (self .source , np .ndarray ):
@@ -1964,7 +1964,7 @@ def __sub__(self, other):
1964
1964
else :
1965
1965
return Function (lambda x : (self .getValue (x ) * other (x )))
1966
1966
# If other is Float except...
1967
- except :
1967
+ except AttributeError :
1968
1968
if isinstance (other , (float , int , complex )):
1969
1969
# Check if Function object source is array or callable
1970
1970
if isinstance (self .source , np .ndarray ):
0 commit comments