kurtosis-tech / autogpt-package

It's like Auto-GPT met Brew. The easiest and fastest way to get started with AutoGPT with any backend of your choice & whatever plugins you may need
MIT License
157 stars 21 forks source link

fix: Handle invalid plugin name in input allowed list #54

Closed laurentluce closed 1 year ago

laurentluce commented 1 year ago

An invalid plugin name in the input allowed list throws the following error:

There was an error interpreting Starlark code
Evaluation error: local variable plugin referenced before assignment
    at [github.com/kurtosis-tech/autogpt-package:131:121]: run

Error encountered running Starlark code.

Update the code to handle this error gracefully.

here was an error interpreting Starlark code
Evaluation error: fail: Invalid plugin name AutoGPTIFTTTWebhooksPlugin.  The supported plugins are: AutoGPTTwitter, AutoGPTEmailPlugin, AutoGPTSceneXPlugin, AutoGPTBingSearch, AutoGPTNewsSearch, AutoGPTWikipediaSearch, AutoGPTApiTools, AutoGPTRandomValues, AutoGPTSpacePlugin, AutoGPTGoogleAnalyticsPlugin, AutoGPTAlpacaTraderPlugin, AutoGPTUserInput, BingAI, AutoGPTCryptoPlugin. You can add support for a new plugin by creating an issue or PR at https://github.com/kurtosis-tech/autogpt-package
    at [github.com/kurtosis-tech/autogpt-package:132:21]: run
    at [0:0]: fail

Error encountered running Starlark code.