Misleading error message printed when using manage.py runscript
#17700
Labels
pending closure
Requires immediate attention to avoid being closed for inactivity
status: revisions needed
This issue requires additional information to be actionable
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.12
Steps to Reproduce
This was happening because I was trying to import a python lib that wasn't installed.
Expected Behavior
In the UI there should be some kind of error message, not just the removal of "Run Script" button, also in the error message printed by the CLI version, at least the name of the script should be mentioned.
Observed Behavior
In GUI there is no error message, only "Run Script" button was removed, while in CLI the error message displayed is:
The text was updated successfully, but these errors were encountered: