From 346d3da1758700b5a8269005791c8b60a9e3906e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 12 Apr 2018 14:11:01 +0200 Subject: [PATCH] Add more info in case of an error --- pyrogram/client/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index f0e049f7..3232e0b0 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -830,7 +830,10 @@ class Client: self.api_id = parser.getint("pyrogram", "api_id") self.api_hash = parser.get("pyrogram", "api_hash") else: - raise AttributeError("No API Key found") + raise AttributeError( + "No API Key found. " + "More info: https://docs.pyrogram.ml/start/ProjectSetup#configuration" + ) if self.proxy is not None: self.proxy = Proxy(