mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3 Downloader] Handle errors when importing modules (#1655)
* Handle errors when importing modules * Do nothing with error * Updated to black formatter standards * More Black formatting
This commit is contained in:
parent
7a70d12efd
commit
55afc7eb33
@ -152,7 +152,9 @@ class Repo(RepoJSONMixin):
|
||||
Installable(location=name)
|
||||
)
|
||||
"""
|
||||
for file_finder, name, is_pkg in pkgutil.walk_packages(path=[str(self.folder_path)]):
|
||||
for file_finder, name, is_pkg in pkgutil.walk_packages(
|
||||
path=[str(self.folder_path)], onerror=lambda name: None
|
||||
):
|
||||
curr_modules.append(Installable(location=self.folder_path / name))
|
||||
self.available_modules = curr_modules
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user