mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Add more info in case of an error
This commit is contained in:
parent
1ccda820c1
commit
346d3da175
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user