Skip to content

Commit

Permalink
BUG: Fix import of AxisError for older versions of numpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Jul 29, 2024
1 parent 6b3ba8d commit e32ef5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ufunclab/_wrapped.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

import operator
import numpy as np
from numpy.exceptions import AxisError
try:
from numpy.exceptions import AxisError
except ImportError:
from numpy import AxisError
from ufunclab._convert_to_base import convert_to_base as _convert_to_base


Expand Down

0 comments on commit e32ef5f

Please sign in to comment.