mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-15 21:00:36 +02:00
fix: fixed issue that creyPY couldn't be used without PSQL
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
from .async_session import * # noqa
|
try:
|
||||||
from .helpers import * # noqa
|
import sqlalchemy
|
||||||
from .session import * # noqa
|
|
||||||
|
from .async_session import *
|
||||||
|
from .helpers import *
|
||||||
|
from .session import *
|
||||||
|
except ImportError:
|
||||||
|
print("SQLAlchemy not installed. Database functionality will be disabled.")
|
||||||
|
|||||||
Reference in New Issue
Block a user