Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1667 by [email protected]: Improve error message when BuiltIn keywords are called outside an execution
http://code.google.com/p/robotframework/issues/detail?id=1667

If in a user library, code like this is executed outside RF, e.g. in a unit test:
    foo = BuiltIn().get_variable_value('${SOME_VAR}')
This is the error:
AttributeError: 'NoneType' object has no attribute 'namespace'

It would be nice if there was some less generic exception like raising an OutsideExecution exception or something like that. This would allow the library to give a default value without trapping all exceptions or trapping AttributeError, which does not appear to be an intended error.

See https://groups.google.com/d/msg/robotframework-users/M0SKRw24eFY/d-9Fr-cA3wgJ

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to