From 188c8c1b1a70c9dc6440899a98b507234eaa6e3f Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 28 Jan 2019 00:36:52 +0300 Subject: [PATCH] fix --- aggregator/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aggregator/client.py b/aggregator/client.py index 429fcd3..b02dec8 100644 --- a/aggregator/client.py +++ b/aggregator/client.py @@ -15,10 +15,10 @@ Session.notice_displayed = True def get_client(): config._reload_maybe() - pyrogram_sesssion = config.pyrogram_session.replace('.session', '') - if not pyrogram_sesssion or not config.pyrogram_app_id or config.pyrogram_app_hash: + pyrogram_session = config.pyrogram_session.replace('.session', '') + if not pyrogram_session or not config.pyrogram_app_id or not config.pyrogram_app_hash: raise RuntimeError('Pyrogram is not configured') - session_path = os.path.relpath(default_storage.path(pyrogram_sesssion)) + session_path = os.path.relpath(default_storage.path(pyrogram_session)) return Client(session_path, config.pyrogram_app_id, config.pyrogram_app_hash)