- Add additional Heroku deps
- Fix `load_module` reattempt
pull/1/head
hikariatama 2022-06-05 17:24:18 +00:00
parent 7fb206aaa0
commit 3725d6ed25
2 changed files with 4 additions and 1 deletions

View File

@ -20,8 +20,11 @@ grapheme = '==0.6.0'
heroku3 = '==5.1.4'
psycopg2-binary = '==2.9.3'
redis = '==3.5.3'
# Optional Heroku deps just to make user comfortable
Pillow = '*'
pydub = '*'
SpeechRecognition = '*'
googletrans = '==4.0.0rc1'
python-ffmpeg = '*'
emoji = '*'
moviepy = '*'

View File

@ -641,7 +641,7 @@ class LoaderMod(loader.Module):
importlib.invalidate_caches()
return await self.load_module(utils.get_kwargs()) # Try again
return await self.load_module(**utils.get_kwargs()) # Try again
except loader.LoadError as e:
with contextlib.suppress(ValueError):
self.allmodules.modules.remove(instance) # skipcq: PYL-E0601