marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
94 stars 10 forks source link

Invocation of __before__ and __after__ in JSONRPCController masks AttributeErrors #122

Closed agronholm closed 12 years ago

agronholm commented 12 years ago

If an AttributeError occurs when invoking before or after in a JSONRPCController, it'll be ignored instead of properly reported to the client as an exception. The implementation should instead do a soft getattr() to determine whether these special methods have been implemented.