mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 15:14:52 +00:00
Merge branch 'develop' into asyncio-dev
# Conflicts: # pyrogram/client/client.py
This commit is contained in:
commit
75bfa04f3f
1 changed files with 2 additions and 2 deletions
|
|
@ -1529,7 +1529,7 @@ class Client(Methods, BaseClient):
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
if not include:
|
if not include:
|
||||||
for path in sorted(Path(root).rglob("*.py")):
|
for path in sorted(Path(root.replace(".", "/")).rglob("*.py")):
|
||||||
module_path = '.'.join(path.parent.parts + (path.stem,))
|
module_path = '.'.join(path.parent.parts + (path.stem,))
|
||||||
module = reload(import_module(module_path))
|
module = reload(import_module(module_path))
|
||||||
|
|
||||||
|
|
@ -1591,7 +1591,7 @@ class Client(Methods, BaseClient):
|
||||||
warn_non_existent_functions = True
|
warn_non_existent_functions = True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
module = reload(import_module(module_path))
|
module = import_module(module_path)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
log.warning('[{}] [UNLOAD] Ignoring non-existent module "{}"'.format(
|
log.warning('[{}] [UNLOAD] Ignoring non-existent module "{}"'.format(
|
||||||
self.session_name, module_path))
|
self.session_name, module_path))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue