diff --git a/rithm/enums.py b/rithm/enums.py index 7440032..ae8d627 100644 --- a/rithm/enums.py +++ b/rithm/enums.py @@ -32,7 +32,7 @@ def __repr__(self) -> str: ... else: try: from . import _crithm as _module - except ModuleNotFoundError: + except ImportError: from . import _enums as _module Endianness = _module.Endianness diff --git a/rithm/fraction.py b/rithm/fraction.py index 9a2f860..8654bc0 100644 --- a/rithm/fraction.py +++ b/rithm/fraction.py @@ -122,7 +122,7 @@ def __trunc__(self, /) -> Int: ... else: try: from . import _crithm as _module - except ModuleNotFoundError: + except ImportError: from . import _rithm as _module Fraction = _module.Fraction diff --git a/rithm/integer.py b/rithm/integer.py index 88ea862..865ee7b 100644 --- a/rithm/integer.py +++ b/rithm/integer.py @@ -153,7 +153,7 @@ def __xor__(self, other: Self | int, /) -> Self: ... else: try: from . import _crithm as _module - except ModuleNotFoundError: + except ImportError: from . import _rithm as _module Int = _module.Int