Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-39280

read_json/write_json: improve exception message if the data cannot be decoded/encoded

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Story Points:
      0
    • Sprint:
      TSSW Sprint - May 08 - May 22
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      In ts_tcpip BaseClientOrServer the read_json and write_json messages raise the default json exception if decoding/encoding fails. Unfortunately it is not very informative, so catch the exception and include the data that could not be encoded/decoded.

        Attachments

          Activity

          Hide
          rowen Russell Owen added a comment -
          Show
          rowen Russell Owen added a comment - Pull request: https://github.com/lsst-ts/ts_tcpip/pull/27
          Hide
          wvreeven Wouter van Reeven added a comment -

          Reviewed on GitHub.

          Show
          wvreeven Wouter van Reeven added a comment - Reviewed on GitHub.
          Hide
          rowen Russell Owen added a comment -

          Tagged ts_tcpip v1.1.2

          Show
          rowen Russell Owen added a comment - Tagged ts_tcpip v1.1.2

            People

            Assignee:
            rowen Russell Owen
            Reporter:
            rowen Russell Owen
            Reviewers:
            Wouter van Reeven
            Watchers:
            Russell Owen, Wouter van Reeven
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.