From 2101dfb8db04714855de0389becb78f10bd09176 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 23 Dec 2018 01:09:20 +0100 Subject: [PATCH] Show a meaningful error and hint to read more when using cloud password --- pyrogram/client/methods/password/change_cloud_password.py | 5 ++++- pyrogram/client/methods/password/enable_cloud_password.py | 5 ++++- pyrogram/client/methods/password/remove_cloud_password.py | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/methods/password/change_cloud_password.py b/pyrogram/client/methods/password/change_cloud_password.py index 6ae660f9..6a65d51b 100644 --- a/pyrogram/client/methods/password/change_cloud_password.py +++ b/pyrogram/client/methods/password/change_cloud_password.py @@ -42,7 +42,10 @@ class ChangeCloudPassword(BaseClient): Raises: :class:`Error ` in case of a Telegram RPC error. """ - raise NotImplementedError + raise NotImplementedError( + "Cloud password methods are currently not available. " + "See https://github.com/pyrogram/pyrogram/issues/178" + ) # r = self.send(functions.account.GetPassword()) # diff --git a/pyrogram/client/methods/password/enable_cloud_password.py b/pyrogram/client/methods/password/enable_cloud_password.py index f5a71f4b..28542815 100644 --- a/pyrogram/client/methods/password/enable_cloud_password.py +++ b/pyrogram/client/methods/password/enable_cloud_password.py @@ -44,7 +44,10 @@ class EnableCloudPassword(BaseClient): Raises: :class:`Error ` in case of a Telegram RPC error. """ - raise NotImplementedError + raise NotImplementedError( + "Cloud password methods are currently not available. " + "See https://github.com/pyrogram/pyrogram/issues/178" + ) # r = self.send(functions.account.GetPassword()) # diff --git a/pyrogram/client/methods/password/remove_cloud_password.py b/pyrogram/client/methods/password/remove_cloud_password.py index 92ae666d..9b45fc8e 100644 --- a/pyrogram/client/methods/password/remove_cloud_password.py +++ b/pyrogram/client/methods/password/remove_cloud_password.py @@ -34,7 +34,10 @@ class RemoveCloudPassword(BaseClient): Raises: :class:`Error ` in case of a Telegram RPC error. """ - raise NotImplementedError + raise NotImplementedError( + "Cloud password methods are currently not available. " + "See https://github.com/pyrogram/pyrogram/issues/178" + ) # r = self.send(functions.account.GetPassword()) #