mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Downloader] Handle ImportError in is_lib_installed() (#1927)
This commit is contained in:
parent
92376b7de2
commit
e19328188b
@ -527,7 +527,10 @@ class Downloader:
|
|||||||
return git_name[:-4]
|
return git_name[:-4]
|
||||||
|
|
||||||
def is_lib_installed(self, name):
|
def is_lib_installed(self, name):
|
||||||
|
try:
|
||||||
return bool(find_spec(name))
|
return bool(find_spec(name))
|
||||||
|
except ImportError:
|
||||||
|
return False
|
||||||
|
|
||||||
def _do_first_run(self):
|
def _do_first_run(self):
|
||||||
save = False
|
save = False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user