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
If somebody passes an unexpected argument to mainloop via the config yaml, cxflow raises an exception stating that the mainloop got an unexpected argument. This can easily happen when copy-pasting some config and ruining some indentations...
This is totally fine, but it's also a bit confusing since the stack trace leads the user through the cli about which the user has no idea (I don't expect regular users to understand mainloop or cli in any depth).
I suggest letting the mainloop accept **kwargs and immediately checking that they're empty. The raised exception should state that configuration file is likely incorrect.
The text was updated successfully, but these errors were encountered:
Migrated from https://github.com/Cognexa/cxflow/issues/206
If somebody passes an unexpected argument to mainloop via the config yaml, cxflow raises an exception stating that the mainloop got an unexpected argument. This can easily happen when copy-pasting some config and ruining some indentations...
This is totally fine, but it's also a bit confusing since the stack trace leads the user through the cli about which the user has no idea (I don't expect regular users to understand mainloop or cli in any depth).
I suggest letting the mainloop accept **kwargs and immediately checking that they're empty. The raised exception should state that configuration file is likely incorrect.
The text was updated successfully, but these errors were encountered: