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

pybind11-wrapped exceptions report unhelpful type names and modules

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: pex_exceptions
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Epic Link:
    • Team:
      Data Release Production

      Description

      pybind11-wrapped exceptions report unhelpful type names and modules:

      >>> str(lsst.afw.fits.FitsError) 
      "<class 'lsst.pex.exceptions.wrappers.FitsError'>" 

      This is not exactly incorrect, but is not the name we want.

      Note that this is str on the type, not the instance, so it's probably __name__ and __module__ that we need to fix.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbosch Jim Bosch
                Watchers:
                Jim Bosch, Krzysztof Findeisen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel