Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-824

TApplicationException.__str__() refers to class constants as globals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5
    • Python - Library
    • None
    • Patch Available

    Description

      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.

      Attachments

        1. TApplicationException.patch
          0.9 kB
          Peter Schuller

        Activity

          People

            scode Peter Schuller
            scode Peter Schuller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: