2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Add more info in case of an error

This commit is contained in:
Dan 2018-04-12 14:11:01 +02:00
parent 1ccda820c1
commit 346d3da175

View File

@ -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(