rpyc server crash with wxwindows #16

Closed
tomerfiliba opened this Issue Mar 2, 2011 · 1 comment

Projects

None yet

1 participant

@tomerfiliba
Owner

PyScripter Show activity 12/28/09
Some analysis suggests the following:
The problem occurs in Connection._unbox:
cls = getattr(obj, "class", type(obj))

wx.cvar.class raises a NameError and not an AttributeError as it
should (this is a bug on wx's part). As a result _unbox fails.

The workaround which would make rpyc more forgiving to such bugs would
be to replace the getattr statement with the following:

        try:
            cls = obj.__class__
        except:
            cls = type(obj)

Could you please implement this small change?

@tomerfiliba
Owner

fixes a28b882; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4;

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment