New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpyc server crash with wxwindows #16

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

Comments

Projects
None yet
1 participant
@tomerfiliba
Owner

tomerfiliba commented Mar 2, 2011

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

This comment has been minimized.

Owner

tomerfiliba commented Mar 2, 2011

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