Status: Accepted
Owner: ----
New issue 591 by jprantan: Inheriting ExecutionFailed exception without
calling ExecutionFailed.__init__ crashes test execution with RF 2.5
http://code.google.com/p/robotframework/issues/detail?id=591
If exception raised from library is inheriting RF's ExecutionFailed
exception, test execution can crash (Unexpected error:
AttributeError: 'MyException' object has no attribute 'cont'). This failure
can happen if ExecutionFailed.__init__ is not called in RF 2.5. In 2.1.2
and older, there have not been __init__ in ExecutionFailed and therefore
upgrading can cause this exception.
Attached is files that can be used to reproduce the problem.
I think there is two options with this:
1) No code changes, just help people to upgrade their libraries in case
someone have this problem
2) Add __getattr__ which informs wrong usage of the ExecutionFailed
exception and provides default values for timeout, syntax, exit and cont
attributes.
Attachments:
MyLib.py 229 bytes
test.txt 77 bytes