You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Peter Schuller (JIRA)" <ji...@apache.org> on 2010/07/22 09:38:53 UTC

[jira] Updated: (THRIFT-824) TApplicationException.__str__() refers to class constants as globals

     [ https://issues.apache.org/jira/browse/THRIFT-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Schuller updated THRIFT-824:
----------------------------------

    Attachment: TApplicationException.patch

Patch to refer to constants via 'self'.

> TApplicationException.__str__() refers to class constants as globals
> --------------------------------------------------------------------
>
>                 Key: THRIFT-824
>                 URL: https://issues.apache.org/jira/browse/THRIFT-824
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (Python)
>            Reporter: Peter Schuller
>         Attachments: TApplicationException.patch
>
>
> str():ing a TApplicationException that does not have a message yields:
>    NameError: global name 'INVALID_MESSAGE_TYPE' is not defined
> The attached patch (assuming JIRA asks me for one after I submit this one) is the trivial fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.