mirror of https://github.com/coddrago/Heroku
Attempt to install dependencies from error message if they are not specified in code
parent
737dfd8343
commit
3cf750a586
|
@ -73,6 +73,9 @@ class HikkaDLMod(loader.Module):
|
||||||
await wss.send("🚫 Origin is not allowed")
|
await wss.send("🚫 Origin is not allowed")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Modules' creators spend so much time to create cool modules
|
||||||
|
# so this code part is a little propriety gesture. Send a ❤
|
||||||
|
# to a message with a link to currently downloading module
|
||||||
try:
|
try:
|
||||||
await self._client(
|
await self._client(
|
||||||
SendReactionRequest(
|
SendReactionRequest(
|
||||||
|
|
|
@ -463,7 +463,8 @@ class LoaderMod(loader.Module):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise Exception("No valid pip packages specified in code") from e
|
logger.warning("No valid pip packages specified in code, attemping installation from error")
|
||||||
|
requirements = [e.name]
|
||||||
|
|
||||||
logger.debug("Installing requirements: %r", requirements)
|
logger.debug("Installing requirements: %r", requirements)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue