You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npm run tx 0x4989fa9d76a0f1a54236e6fb59823827ce98e063047b909308ed7552a739fef0
> text-message-sentiment-analysis@1.0.0 tx
> forta-agent run --tx 0x4989fa9d76a0f1a54236e6fb59823827ce98e063047b909308ed7552a739fef0
initializing agent...
WARNING:root:Start loading sentiment model
ERROR: Error: error initializing agent: python: WARNING:root:Start loading sentiment model
This also happens with a 3rd party package I'm using called transformers to load a deep learning model. While loading, the library logs some warning messages and the process exits.
To prevent the initialize method from exiting, I updated the logging settings to only emit errors.
Description
I noticed bot initialization exits when
logging
or a 3rd party package emits a warning message. Is this expected?Reproduce
The bot ends with the following error message:
This also happens with a 3rd party package I'm using called
transformers
to load a deep learning model. While loading, the library logs some warning messages and the process exits.To prevent the initialize method from exiting, I updated the logging settings to only emit errors.
Expected behavior
I'm hoping the bot initialization to complete and only exit if the message has a level >=
ERROR
.Additional context
Language: python
SDK Version: 0.1.15
The text was updated successfully, but these errors were encountered: