From dc7fe93aeb02a0aa3b4a2adf336091e57331b7e6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 2 Jun 2018 20:52:16 +0200 Subject: [PATCH] Clean up code --- pyrogram/client/client.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index e38d752e..24b1b5fe 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -1272,9 +1272,6 @@ class Client(Methods, BaseClient): break except Exception as e: raise e - finally: - pass # Don't stop sessions, they are now cached and kept online - # cdn_session.stop() TODO: Remove this branch except Exception as e: log.error(e, exc_info=True) @@ -1286,6 +1283,3 @@ class Client(Methods, BaseClient): return "" else: return file_name - finally: - pass # Don't stop sessions, they are now cached and kept online - # session.stop() TODO: Remove this branch