mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-31 20:54:51 +00:00
Add more info in case of an error
This commit is contained in:
parent
1ccda820c1
commit
346d3da175
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Reference in a new issue