Skip to content

Commit 83a229a

Browse files
committed
no import warning on sql core imports
1 parent ca8fec8 commit 83a229a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/cachier/cores/sql.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,9 @@
2222
)
2323
from sqlalchemy.engine import Engine
2424
from sqlalchemy.orm import declarative_base, sessionmaker
25-
2625
SQLALCHEMY_AVAILABLE = True
2726
except ImportError:
2827
SQLALCHEMY_AVAILABLE = False
29-
import warnings
30-
31-
warnings.warn(
32-
"`SQLAlchemy` was not found. SQL cores will not function.",
33-
ImportWarning,
34-
stacklevel=2,
35-
)
3628

3729
from .._types import HashFunc
3830
from ..config import CacheEntry

0 commit comments

Comments
 (0)