mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Add PathLike
support to SQLiteSession
(#3737)
This commit is contained in:
@@ -39,7 +39,7 @@ class SQLiteSession(Session):
|
||||
self.save_entities = True
|
||||
|
||||
if session_id:
|
||||
self.filename = session_id
|
||||
self.filename = os.fspath(session_id)
|
||||
if not self.filename.endswith(EXTENSION):
|
||||
self.filename += EXTENSION
|
||||
|
||||
|
Reference in New Issue
Block a user