mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Fix create_engine check
This commit is contained in:
parent
07c2fc50ec
commit
03d4ab3765
|
@ -49,7 +49,7 @@ class DBSentFile(Base):
|
|||
|
||||
class AlchemySessionContainer:
|
||||
def __init__(self, database):
|
||||
if not isinstance(database, sql.Engine):
|
||||
if isinstance(database, str):
|
||||
database = sql.create_engine(database)
|
||||
|
||||
self.db_engine = database
|
||||
|
|
Loading…
Reference in New Issue
Block a user